[Machine] The first thing that was abrogated from the Qur'an, as mentioned to us and Allah knows best, is the matter of the Qiblah. Allah, may He be glorified and exalted, said, "To Allah belong the east and the west. So wherever you [might] turn, there is the Face of Allah." (Quran 2:115) So the Messenger of Allah ﷺ faced towards the direction of the Bayt al-Maqdis (Jerusalem) and left the Ancient House (the Kaaba). Allah then abrogated it and turned him towards the Ancient House (the Kaaba) and said, "From wherever you go out [for prayer], turn your face toward al-Masjid al-Haram. And wherever you [believers] may be, turn your faces toward it." (Quran 2:144) According to the statements of Imam ash-Shafi'i (may Allah have mercy on him), this narration is attributed to Ibn Abbas (may Allah be pleased with him), who entered into a detailed explanation: when he migrated to Madinah, he faced Bayt al-Maqdis out of devotion to the Ancient House (the Kaaba), and he would have loved it if Allah had made facing the Ancient House (the Kaaba) obligatory for him. So Allah revealed this verse to him before He revealed the verse "We have certainly seen the turning of your face toward the heaven." (Quran 2:144) Sheikh also mentioned that it is narrated from Ibn Abbas (may Allah be pleased with him) that it was revealed with regard to their statement, "They have turned away from their qiblah." (Quran 2:142)
أَوَّلُ مَا نُسِخَ مِنَ الْقُرْآنِ فِيمَا ذُكِرَ لَنَا وَاللهُ أَعْلَمُ شَأْنُ الْقِبْلَةِ قَالَ اللهُ تَبَارَكَ وَتَعَالَى {وَلِلَّهِ الْمَشْرِقُ وَالْمَغْرِبُ فَأَيْنَمَا تُوَلُّوا فَثَمَّ وَجْهُ اللهِ} [البقرة 115] فَاسْتَقْبَلَ رَسُولُ اللهِ ﷺ فَصَلَّى نَحْوَ بَيْتِ الْمَقْدِسِ وَتَرَكَ الْبَيْتَ الْعَتِيقَ فَقَالَ {سَيَقُولُ السُّفَهَاءُ مِنَ النَّاسِ مَا وَلَّاهُمْ عَنْ قِبْلَتِهِمُ الَّتِي كَانُوا عَلَيْهَا} [البقرة 142] يَعْنُونَ بَيْتَ الْمَقْدِسِ فَنَسَخَهَا فَصَرَفَهُ اللهُ إِلَى الْبَيْتِ الْعَتِيقِ فَقَالَ {وَمِنْ حَيْثُ خَرَجْتَ فَوَلِّ وَجْهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ وَحَيْثُمَا كُنْتُمْ فَوَلُّوا وُجُوهَكُمْ شَطْرَهُ} وَفِي كَلَامِ الشَّافِعِيِّ رَحِمَهُ اللهُ بَيَانُ مَا فِي هَذِهِ الرِّوَايَةِ عَنِ ابْنِ عَبَّاسٍ ؓ وَهُوَ أَنَّهُ دَخَلَ فِي مَبْسُوطِ كَلَامِهِ فَلَمَّا هَاجَرَ إِلَى الْمَدِينَةِ اسْتَقْبَلَ بَيْتَ الْمَقْدِسِ مُوَلِّيًا عَنِ الْبَيْتِ الْحَرَامِ وَهُوَ يُحِبُّ لَوْ قَضَى اللهُ لَهُ بِاسْتِقْبَالِ الْبَيْتِ الْحَرَامِ فَأَنْزَلَ اللهُ ﷻ هَذِهِ الْآيَةَ إِلَى أَنْ أَنْزَلَ اللهُ {قَدْ نَرَى تَقَلُّبَ وَجْهِكَ فِي السَّمَاءِ} [البقرة 144] قَالَ الشَّيْخُ وَرُوِيَ عَنِ ابْنِ عَبَّاسٍ أَنَّهَا نَزَلَتْ فِي قَوْلِهِمْ {مَا وَلَّاهُمْ عَنْ قِبْلَتِهِمُ الَّتِي كَانُوا عَلَيْهَا} [البقرة 142]