Abdullah bin Abbas reported,

When the Prophet ﷺ saw the images inside the House, he refused to enter until he ordered them to be erased, and they were erased. He saw Ibrahim and Ismail, peace be upon them, depicted with divining arrows in their hands, and he said, "May Allah ruin them. By Allah, they never cast lots with divining arrows."

Bukhari 3352

Sahih

حدثنا إبراهيم بن موسى أخبرنا هشام عن معمر عن أيوب عن عكرمة

عن ابن عباس رضي الله عنهما

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

البخاري 3352صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hadiths of the prophets
Chapter
Saying of Allah the Most High, "And Allah took Ibrahim as a close friend"
Numbering
Darussalam 3352
Bukhari 3352