The Messenger of Allah ﷺ entered the Kaabah, which had six pillars inside, and he stood by each pillar but did not pray.
حدثنا يزيد أخبرنا همام بن يحيى حدثنا عطاء
دخل رسول الله ﷺ الكعبة وفيها ست سوار فقام عند كل سارية ولم يصل
Its isnad is sahih, and it was narrated by Bukhari and Muslim, as in Nasb Raya, and it will come again, so see there.