Hadith 6:670
Jarir ibn Abd al-Hamid narrated to us, from Mansur, from Ibrahim, who said: If a funeral (prayer) comes upon you suddenly and you are not in a state of ablution, then if you have water, perform ablution and pray. And if you do not have water, perform tayammum and pray.
حدثنا جرير بن عبد الحميد عن منصور عن إبراهيم قال إذا فجأتك الجنازة ولست على وضوء فإن كان عندك ماء فتوضأ وصل وإن لم يكن عندك ماء فتيمم وصل