"I became sexually impure and could not find water."Umar said, "Then do not pray."Ammar bin Yasir said, "Do you not remember, Commander of the Faithful, when you and I were on a military expedition and we both became sexually impure and could not find water? You did not pray, but I rolled in the dirt and prayed. When I came to the Prophet ﷺ and told him about it, he said, 'This would have been enough for you.' Then the Prophet ﷺ struck the ground with his hands, blew into them, and wiped his face and palms with them."
حدثنا محمد بن بشار حدثنا محمد بن جعفر حدثنا شعبة عن الحكم عن ذر عن سعيد بن عبد الرحمن بن أبزى عن أبيه أن رجلا أتى
إني أجنبت فلم أجد الماء فقال عمر لا تصل فقال عمار بن ياسر أما تذكر يا أمير المؤمنين إذ أنا وأنت في سرية فأجنبنا فلم نجد الماء فأما أنت فلم تصل وأما أنا فتمعكت في التراب فصليت فلما أتيت النبي ﷺ فذكرت ذلك له فقال إنما كان يكفيك وضرب النبي ﷺ بيديه إلى الأرض ثم نفخ فيهما ومسح بهما وجهه وكفيه
Bukhari transmitted it in the chapter on tayammum, in the section on tayammum for the face and hands, hadith 343, from Ibn Bashar in abridged form, hadith 338, and elsewhere, and Muslim transmitted it in the chapter on menstruation, in the section on tayammum, hadith 368, through the hadith of Shubah with the same chain.