Abdullah bin Abbas reported,

When the Prophet ﷺ arrived at Mecca, he refused to enter the House while the idols were still inside, so he ordered that they be removed. An image of Ibrahim and Ismail was brought out, and in their hands were divining arrows.The Messenger of Allah ﷺ said, "May Allah destroy them. By Allah, they knew well that these two never sought decisions by such arrows."Then he entered the House and pronounced the takbir in its various sides and corners, after which he left without praying inside.

Abu Dawud 2027

Sahih

حدثنا أبو معمر عبد الله بن عمرو بن أبي الحجاج حدثنا عبد الوارث عن أيوب عن عكرمة

عن ابن عباس

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

أبو داود 2027صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Rites of pilgrimage
Chapter
Prayer in the Kaaba
Numbering
Darussalam 2027
Abu Dawud 2027