It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) entered the Ka'bah and supplicated in its corners, then came out and prayed two rak'ahs.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12101