[Machine] That Prophet ﷺ performed the hijama (cupping) while in a state of ihram and fasting. Al-Shafi'i and Ibn Abbas narrated from the Prophet ﷺ in the year of the conquest, and it was not a day of ihram then, nor was he accompanied by anyone in ihram who was not already in a state of ihram before the Hajj of Islam. Ibn Abbas mentioned the Prophet's ﷺ hijama in the year of the Hajj of Islam in the tenth year. The hadith of the hajjim and mahjum (cupper and the one who is cupped) fasting is from two years before the Hajj of Islam. If they are both proven, then the hadith of Ibn Abbas is abrogating, and the hadith of the hajjim and mahjum is abrogated. Al-Shafi'i said: The chain of narration for both hadiths combined is dubious, and the hadith of Ibn Abbas is the most similar to them in terms of chain of narration. If a person refrains from hijama, it is more preferable to me as a precautionary measure so that his fasting is not compromised and weakened, and in case he is cupped, the hijama should not break his fast. Along with the hadith of Ibn Abbas, there is the analogy that I memorized from some of the companions of the Prophet ﷺ and the tabi'in and most of the people of Madinah, which is that no one's fast is broken by hijama.
أَنَّ رَسُولَ اللهِ ﷺ احْتَجَمَ مُحْرِمًا صَائِمًا قَالَ الشَّافِعِيُّ وَسَمَاعُ ابْنِ عَبَّاسٍ عَنِ النَّبِيِّ ﷺ عَامَ الْفَتْحِ وَلَمْ يَكُنْ يَوْمَئِذٍ مُحْرِمًا وَلَمْ يَصْحَبْهُ مُحْرِمًا قَبْلَ حَجَّةِ الْإِسْلَامِ فَذِكْرُ ابْنِ عَبَّاسٍ حِجَامَةَ النَّبِيِّ ﷺ عَامَ حَجَّةِ الْإِسْلَامِ سَنَةَ عَشْرٍ وَحَدِيثُ أَفْطَرَ الْحَاجِمُ وَالْمَحْجُومُ سَنَةَ ثَمَانٍ قَبْلَ حَجَّةِ الْإِسْلَامِ بِسَنَتَيْنِ فَإِنْ كَانَا ثَابِتَينِ فَحَدِيثُ ابْنِ عَبَّاسٍ نَاسِخٌ وَحَدِيثُ أَفْطَرَ الْحَاجِمُ وَالْمَحْجُومُ مَنْسُوخٌ قَالَ الشَّافِعِيُّ وَإِسْنَادُ الْحَدِيثَيْنِ مَعًا مُشْتَبَهٌ وَحَدِيثُ ابْنِ عَبَّاسٍ أَمْثَلُهُمَا إِسْنَادًا فَإِنَ تَوَقَّى رَجُلٌ الْحِجَامَةَ كَانَ أَحَبَّ إِلَيَّ احْتِيَاطًا وَلِئَلَّا يُعَرِّضَ صَوْمَهُ أَنْ يَضْعُفَ فَيُفْطِرَ فَإِنِ احْتَجَمَ فَلَا تُفْطِرُهُ الْحِجَامَةُ وَمَعَ حَدِيثِ ابْنِ عَبَّاسٍ الْقِيَاسُ الَّذِي أَحْفَظُ عَنْ بَعْضِ أَصْحَابِ رَسُولِ اللهِ ﷺ وَالتَّابِعِينَ وَعَامَّةِ الْمَدَنِيِّينَ أَنَّهُ لَا يُفْطِرُ أَحَدٌ بِالْحِجَامَةِ