From Sahih Bukhari (Hadith 1573):
Narrated Nafi`:On reaching the sanctuary of Mecca, Ibn `Umar used to stop, reciting Talbiya and then he would pass the night at Dhi-Tuwa and then offer the Fajr prayer and take a bath. He used to say that the Prophet (ﷺ) used to do the same
Reference: Bukhari 1573