‘Abd Al Rahman bin Safwan said “I asked ‘Umar bin Al Khattab How did the Apostle of Allaah(ﷺ) do when he entered the Ka’bah? He said “He offered two rak’ahs of prayer.”
Sunan Abi Dawud Book 11, Hadith 306