Maymuna bint Harith reported,

The Prophet ﷺ performed the ritual bath after major impurity. He washed his private parts with his hand, then rubbed his hand against the wall and washed it. Then he performed ablution as he would for prayer. When he finished his bath, he washed his feet.

Bukhari 260

Sahih

حدثنا عبد الله بن الزبير الحميدي قال حدثنا سفيان قال حدثنا الأعمش عن سالم بن أبي الجعد عن كريب عن ابن عباس

عن ميمونة

أن النبي ﷺ اغتسل من الجنابة فغسل فرجه بيده ثم دلك بها الحائط ثم غسلها ثم توضأ وضوءه للصلاة فلما فرغ من غسله غسل رجليه

البخاري 260صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Ghusl
Chapter
Wiping the hand with soil to make it cleaner
Numbering
Darussalam 260
Bukhari 260