From Sahih Muslim (Hadith 3045):
Nafi' reported that Ibn Umar (Allah be pleased with them) did not enter Mecca without spending the night at Dhi Tawu until it was dawn, when he took a bath, and then entered Mecca in the morning, and made a mention that Allah's Apostle (ﷺ) did that
Reference: Muslim 3045