‘Abbas said “When the Prophet ﷺ came to Makkah he refused to enter the House (the Ka’bah) for there were idols in it. He ordered to take them out and they were taken out. The statues of Abraham and Isma’il were taken out and they had arrows in their hands. Apostle of Allaah ﷺ said “May Allaah destroy them! By Allaah, they knew that they never cast lots by arrow. He then entered the House(the Ka’bah) and uttered the takbir (Allaah is most great) in all its sides and corners. He then came out and did not pray. (Using translation from Abū Dāʾūd 2027)
أَنَّ رَسُولَ اللهِ ﷺ لَمَّا قَدِمَ مَكَّةَ أَبَى أَنْ يَدْخُلَ الْبَيْتَ وَفِيهِ الْآلِهَةُ فَأَمَرَ بِهَا فَأُخْرِجَتْ فَأَخْرَجَ صُورَةَ إِبْرَاهِيمَ وَإِسْمَاعِيلَ عَلَيْهِمَا السَّلامُ فِي أَيْدِيهِمَا الْأَزْلامُ فَقَالَ رَسُولُ اللهِ ﷺ قَاتَلَهُمِ اللهُ أَمَا وَاللهِ لَقَدْ عَلِمُوا مَا اقْتَسَمَا بِهَا قَطُّ قَالَ ثُمَّ دَخَلَ الْبَيْتَ فَكَبَّرَ فِي نَوَاحِي الْبَيْتِ وَخَرَجَ وَلَمْ يُصَلِّ فِي الْبَيْتِ