The Prophet (ﷺ) took the bath of Janaba. (sexual relation or wet dream). He first cleaned…

Sahih al-Bukhari Book 5 Hadith 13

Sahih al-Bukhari #260

Bathing (Ghusl) 5:13

Narrated Maimuna:

The Prophet (ﷺ) took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet.

Chapter: The rubbing of hands with earth in ore to clean them thoroughly

Grade: Sahih