Sayyiduna Ibn Abbas (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) entered the House (the Ka'bah), said the takbir in its corners and supplicated, then came out and prayed behind the Maqam (of Ibrahim).
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11253