Sunan Ibn Majah, Book 1, Hadith 612 (In-Book) ⓘ
It was narrated from Sa'eed bin 'Abdur-Rahman bin Abza from his father, that: A man came to 'Umar bin khattab and said: "I became impure following sexual emission and cannot find any water." 'Umar said to him: "Do not pray." But 'Ammar bin Yasir said: "Do you not remember, O Commander of the Believers, when you and I were on a military expedition and we became sexually impure and could not find water? As for you, you did not pray, but I rolled in the dust and then prayed. When I came to the Prophet and told him what had happened, he said: 'It would have been enough for you (to do this).' (Then demonstrating) the Prophet struck the ground with his hands, then blew on hem, and wiped his face and palms with them."
حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، عَنِ الْحَكَمِ، عَنْ ذَرٍّ، عَنْ سَعِيدِ بْنِ عَبْدِ الرَّحْمَنِ بْنِ أَبْزَى، عَنْ أَبِيهِ، أَنَّ رَجُلاً، أَتَى عُمَرَ بْنَ الْخَطَّابِ فَقَالَ إِنِّي أَجْنَبْتُ فَلَمْ أَجِدِ الْمَاءَ . فَقَالَ عُمَرُ لاَ تُصَلِّ . فَقَالَ عَمَّارُ بْنُ يَاسِرٍ أَمَا تَذْكُرُ يَا أَمِيرَ الْمُؤْمِنِينَ إِذْ أَنَا وَأَنْتَ فِي سَرِيَّةٍ فَأَجْنَبْنَا فَلَمْ نَجِدِ الْمَاءَ فَأَمَّا أَنْتَ فَلَمْ تُصَلِّ وَأَمَّا أَنَا فَتَمَعَّكْتُ فِي التُّرَابِ فَصَلَّيْتُ فَلَمَّا أَتَيْتُ النَّبِيَّ ـ صلى الله عليه وسلم ـ فَذَكَرْتُ ذَلِكَ لَهُ . فَقَالَ " إِنَّمَا كَانَ يَكْفِيكَ " . وَضَرَبَ النَّبِيُّ ـ صلى الله عليه وسلم ـ بِيَدَيْهِ إِلَى الأَرْضِ ثُمَّ نَفَخَ فِيهِمَا وَمَسَحَ بِهِمَا وَجْهَهُ وَكَفَّيْهِ .
also referenced under: Hadith 569 (Reference) & Volume 1, Book 1, Hadith 569 (DarusSalam)