Imran bin Husayn reported,

The Messenger of Allah ﷺ saw a man standing apart who had not prayed with the congregation, so he asked, "So-and-so, what kept you from praying with the people?"The man replied, "Messenger of Allah, I am in a state of major ritual impurity and there is no water."He said, "Use clean earth, for that will suffice you."

Azami 12163

Sahih

عن عمران بن حصين الخزاعي

أن رسول الله ﷺ رأى رجلا معتزلا لم يصل في القوم، فقال: يا فلان، ما منعك أن تصلي في القوم؟ فقال: يا رسول الله، أصابتني جنابة ولا ماء. فقال: عليك بالصعيد فإنه يكفيك.

الأعظمي 12163صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "What is above it. As for those who believe, they know that it is the truth from their Lord. But as for those who disbelieve, they say, 'What did Allah intend by this as an example?' He misleads"
Numbering
Jami al-Kamil 12163 (2nd edition)
Azami 12163