Abdullah bin Abbas reported,

When the Messenger of Allah ﷺ arrived in Mecca, he refused to enter the House while the idols were inside it, so he ordered them to be taken out. They brought out a depiction of Ibrahim and Ismail with divining arrows in their hands.The Prophet ﷺ said, "May Allah destroy them. By Allah, they knew that these two never sought lots through divining arrows."Then he entered the House and pronounced the takbir in its corners and came out without praying inside it.

Azami 9162

Sahih

عن عبد الله بن عباس

أن رسول الله ﷺ لما قدم مكة أبي أن يدخل البيت وفيه الآلهة، فأمر بها فأخرجت، فأخرج صورة إبراهيم وإسماعيل في أيديهما من الأزلام فقال النبي ﷺ: قاتلهم الله، لقد علموا ما استقسما بهما قط ثم دخل البيت فكبر في نواحي البيت وخرج ولم يصل فيه.

الأعظمي 9162صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Events between the expedition of Mutah and the expedition of the conquest of Makkah
Section
Removal of idols from around the Kaaba
Numbering
Jami al-Kamil 9162 (2nd edition)
Azami 9162