Nafi' (may Allah have mercy on him) says: When Sayyiduna Ibn Umar (may Allah be pleased with them both) reached the nearest part of the Haram, he would stop reciting the talbiyah, spend the night at Dhu Tuwa, then lead us in the morning prayer and take a bath (ghusl), and he would say: "The Prophet (peace and blessings be upon him) used to do just this."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9200