When the Prophet ﷺ saw pictures in the Kaʿba, he did not enter it till he ordered them to be erased. When he saw (the pictures of Abraham and Ishmael carrying the arrows of divination, he said, "May Allah curse them (i.e. the Quraish)! By Allah, neither Abraham nor Ishmael practiced divination by arrows."
أَنَّ النَّبِيَّ ﷺ لَمَّا رَأَى الصُّوَرَ فِي الْبَيْتِ لَمْ يَدْخُلْ حَتَّى أَمَرَ بِهَا فَمُحِيَتْ وَرَأَى إِبْرَاهِيمَ وَإِسْمَاعِيلَ عَلَيْهِمَا السَّلاَمُ بِأَيْدِيهِمَا الأَزْلاَمُ فَقَالَ قَاتَلَهُمُ اللَّهُ وَاللَّهِ إِنِ اسْتَقْسَمَا بِالأَزْلاَمِ قَطُّ