The Book of Hajj
24/127. Chapter:
The Place Where The Prophet Prayed Inside The House
Sunan an-Nasai
أَخْبَرَنَا حَاجِبُ بْنُ سُلَيْمَانَ الْمَنْبِجِيُّ، عَنِ ابْنِ أَبِي رَوَّادٍ، قَالَ حَدَّثَنَا ابْنُ جُرَيْجٍ، عَنْ عَطَاءٍ، عَنْ أُسَامَةَ بْنِ زَيْدٍ، قَالَ دَخَلَ رَسُولُ اللَّهِ صلى الله عليه وسلم الْكَعْبَةَ فَسَبَّحَ فِي نَوَاحِيهَا وَكَبَّرَ وَلَمْ يُصَلِّ ثُمَّ خَرَجَ فَصَلَّى خَلْفَ الْمَقَامِ رَكْعَتَيْنِ ثُمَّ قَالَ " هَذِهِ الْقِبْلَةُ " .
It was narrated that Usmah bin Zaid said: "The Messenger of Allah entered the Kabah and recited the Tasbih and the Takbir in its corners, but he did not pray. Then he came out and prayed two Rakahs behind the Maqam, then he said: 'This is Qiblah.'"
Reference : Sunan an-Nasa'i 2909In-book reference : Book 24, Hadith 292English translation : Vol. 3, Book 24, Hadith 2912