It is narrated from Sayyiduna Fadl bin Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) entered the House of Ka'bah but did not pray inside; rather, after coming out, he prayed two rak'ahs in front of the door of the Ka'bah.