The Messenger of Allah ﷺ stood inside the Kaabah and glorified Allah, declared His greatness, supplicated to Allah , and sought His forgiveness, without performing bowing or prostration.
حدثنا يونس بن محمد حدثنا حماد يعني ابن سلمة عن عمرو بن دينار عن ابن عباس
أن رسول الله ﷺ قام في الكعبة فسبح وكبر ودعا الله عز وجل واستغفر ولم يركع ولم يسجد
Its isnad is sahih. It appears in Majma al-Zawaid 3:293, where it is stated, Ahmad and Tabarani in Al-Kabir narrated it similarly, and its narrators are the narrators of the Sahih. See also 1801, 1819.