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." (Using translation from Bukhārī 3352)
أَنَّ النَّبِيَّ ﷺ لَمَّا رَأَى الصُّوَرَ فِي الْبَيْتِ لَمْ يَدْخُلْ حَتَّى أَمَرَ بِهَا فَمُحِيَتْ وَرَأَى إِبْرَاهِيمَ وَإِسْمَاعِيلَ بِأَيْدِيهِمَا الْأَزْلَامَ فَقَالَ «قَاتَلَهُمُ اللَّهُ وَاللَّهِ إِنِ اسْتَقْسَمَا بِالْأَزْلَامِ قَطُّ»