Sahih al-Bukhari 338
صحيح البخاري#338SahihNarrated `Abdur Rahman bin Abza [??]:A man came to `Umar bin Al-Khattab and said, "I became Junub but no water was available." `Ammar bin Yasir said to `Umar, "Do you remember that you and I (became Junub while both of us) were together on a journey and you didn't pray but I rolled myself on the ground and prayed? I informed the Prophet (ﷺ) about it and he said, 'It would have been sufficient for you to do like this.' The Prophet then stroked lightly the earth with his hands and then blew off the dust and passed his hands over his face and hands
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih al-Bukhari is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 7:5