Sunan an-Nasa'i, Volume 3, Book 24, Hadith 2912 (DarusSalam) ⓘ
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.'"
أَخْبَرَنَا حَاجِبُ بْنُ سُلَيْمَانَ الْمَنْبِجِيُّ، عَنِ ابْنِ أَبِي رَوَّادٍ، قَالَ حَدَّثَنَا ابْنُ جُرَيْجٍ، عَنْ عَطَاءٍ، عَنْ أُسَامَةَ بْنِ زَيْدٍ، قَالَ دَخَلَ رَسُولُ اللَّهِ صلى الله عليه وسلم الْكَعْبَةَ فَسَبَّحَ فِي نَوَاحِيهَا وَكَبَّرَ وَلَمْ يُصَلِّ ثُمَّ خَرَجَ فَصَلَّى خَلْفَ الْمَقَامِ رَكْعَتَيْنِ ثُمَّ قَالَ " هَذِهِ الْقِبْلَةُ " .
also referenced under: Hadith 2909 (Reference) & Book 24, Hadith 0 (In-Book)