Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) used to relate that Sayyiduna al-Fadl bin Abbas (may Allah be pleased with them both) informed him that he entered the House of Allah with the Messenger of Allah (peace and blessings be upon him), and that the Prophet (peace and blessings be upon him) did not pray inside the House of Allah; rather, when he (peace and blessings be upon him) came out and descended, he offered two rak'ahs near the door of the Ka'bah. Muhammad bin Yahya bin Abi Umar recorded it with a sahih (authentic) chain.
In another narration of his: "The Messenger of Allah (peace and blessings be upon him) went inside the House of Allah and supplicated in all its corners, then came out and offered two rak'ahs of prayer." And in a narration of Abu Bakr bin Abi Shaybah, all of whose narrators are thiqat (trustworthy), these words are reported: "He (peace and blessings be upon him) (merely) stood in the Ka'bah, and he neither bowed (ruku') nor prostrated there (as in prayer)."
Hadith Takhrij«رواه محمد بن يحيى بن أبي عمر بإسناد الصحيح» «ورواه أبو بكر بن أبي شيبة بسند رجاله ثقات بلفظ: "قام في الكعبة ولم يركع ولم يسجد"» «أخرجه مسند أحمد برقم: 1798، 2558، وأخرجه صحيح البخاري برقم: 389، 1524، 4038، وأخرجه سنن أبي داود برقم: 2027، وأخرجه فتح الباري برقم: 1521، 1524، وأخرجه المستدرك على الصحيحين برقم: 1806، 4073، وأخرجه صحيح ابن خزيمة برقم: 432، 3003، 3015، وأخرجه المعجم الكبير للطبراني برقم: 1033، 11301، 11339، 11845، 12153، 12171، 12198»