(38) باب اسْتِحْبَابِ الْمَبِيتِ بِذِي طَوًى عِنْدَ إِرَادَةِ دُخُولِ مَكَّةَ وَالاِغْتِسَالِ لِدُخُولِهَا نَهَارًا
Nafi' reported that Abdullah (b. 'Umar) informed him that Allah's Messenger (ﷺ) turned his face to the two hillocks which intervened between him and the long mountain by the side of the Ka'ba, and the mosque which had been built there was thus on the left of the hillock. Allah's Messenger's (ﷺ) place of prayer was lower than the black hillock, at a distance of ten cubits or near it. He (ﷺ) would then observe prayer facing these two hillocks of the long mountain that is intervening between you and the Ka'ba.
Reference: Sahih Muslim 1260
In-book reference: Book 15, Hadith 253
USC-MSA web (English) reference(deprecated numbering scheme): Book 7, Hadith 2892
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.