It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings of Allah be upon him) prayed two rak'ahs of prayer inside the Ka'bah.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 5116
Hadith Gradingحکم دارالسلام:حديث صحيح ، خ : 397 ، وهذا إسناد ضعيف لضعف ليث .