´It was narrated that Ata said:` "I head Ibn Abbas sya: 'Usmah bin Zaid told me that the Prophet entered the YHouse, and supplicated in all its corner, but he did not pray inside unitl he came out; when he came out he prayed two Rakahs in front of the Kabah.'"
Explanation & Benefits
Hafiz Muhammad Ameen
Commentary in English:
Performing prayer directly in front of the Ka‘bah from outside is not a matter of dispute; the difference of opinion concerns performing prayer inside the Ka‘bah, and that has already been discussed previously. (See, Hadith: 2912)
Source: Sunan Nasa'i: Translation and Benefits by Shaykh Hafiz Muhammad Amin Hafizullah, Page: 2920