[Machine] When the Messenger of Allah ﷺ arrived in Mecca, he refused to enter the Kaaba as it contained idols. So he ordered them to be removed. They then brought out the statues of Ibrahim and Ismail, which were holding the arrows in their hands. The Messenger of Allah ﷺ said, "May Allah curse them! By Allah, they knew well that they never used to swear by those (idols)." Then he entered the Kaaba and made takbeer in its corners, but he did not pray in it. This is the wording of the Hadith of Abu Imran and the Hadith of the Qadi is shortened, that the Prophet ﷺ entered the Kaaba and made takbeer in its corners, then he descended and did not pray.
أَنَّ رَسُولَ اللهِ ﷺ لَمَّا قَدِمَ يَعْنِي مَكَّةَ أَبَى أَنْ يَدْخُلَ الْبَيْتَ وَفِيهِ الْآلِهَةُ قَالَ فَأَمَرَ بِهَا فَأُخْرِجَتْ قَالَ فَأَخْرَجُوا صُورَةَ إِبْرَاهِيمَ وَإِسْمَاعِيلَ فِي أَيْدِيهِمَا الْأَزْلَامُ قَالَ فَقَالَ رَسُولُ اللهِ ﷺ قَاتَلَهُمُ اللهُ أَمَا وَاللهِ لَقَدْ عَلِمُوا أَنَّهُمَا لَمْ يَسْتَقْسِمَا بِهَا قَطُّ قَالَ فَدَخَلَ الْبَيْتَ فَكَبَّرَ فِي نَوَاحِيهِ وَلَمْ يُصَلِّ فِيهِ هَذَا لَفْظُ حَدِيثِ أَبِي عِمْرَانَ وَحَدِيثُ الْقَاضِي مُخْتَصَرٌ أَنَّ النَّبِيَّ ﷺ دَخَلَ الْبَيْتَ فَكَبَّرَ فِي نَوَاحِيهِ ثُمَّ نَزَلَ وَلَمْ يُصَلِّ