It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both): "The Messenger of Allah (peace and blessings be upon him) had cupping (hijamah) done while he (peace and blessings be upon him) was fasting and in the state of ihram, and then he (peace and blessings be upon him) fainted. So on that day he (peace and blessings be upon him) forbade a fasting person from having cupping done, because of dislike of the weakness it causes."
Abu Ya'la al-Mawsili recorded it with a da'if (weak) chain, because one of its narrators, Muhammad bin Abd al-Rahman bin Abi Layla, is weak; however, he is not alone in narrating it, for Ahmad bin Hanbal recorded it through al-Hakam from Miqsam from Ibn Abbas (may Allah be pleased with them both). Al-Tirmidhi (may Allah have mercy on him) said: "A group of the Companions and other scholars disliked cupping for the fasting person, to the extent that some of the Companions, among them Sayyiduna Abu Musa al-Ash'ari and Sayyiduna Ibn Umar (may Allah be pleased with them), would have cupping done at night. This is also the view of Abdullah bin al-Mubarak." Abd al-Rahman bin Mahdi said: "Whoever has cupping done while fasting must make up that fast." Ishaq bin Mansur said: "This is also the view of Ahmad and Ishaq bin Rahawayh." Al-Shafi'i (may Allah have mercy on him) said: "It is narrated from the Prophet (peace and blessings be upon him) that he (peace and blessings be upon him) had cupping done while fasting, and it is also narrated that he (peace and blessings be upon him) said: 'The one who performs cupping and the one who has it done have both broken their fast.' To my knowledge, neither of these two hadiths is (firmly) established. However, if a man avoids cupping while fasting, that is more beloved to me, but if someone has it done, I do not consider that it breaks his fast." Al-Tirmidhi (may Allah have mercy on him) said: "This was the view al-Shafi'i held in Baghdad. As for his time in Egypt, there he inclined towards the concession and saw no harm in cupping for the fasting person, and he argued that the Prophet (peace and blessings be upon him) had cupping done during the Farewell Hajj while fasting and in the state of ihram."
Hadith Takhrij«رواه أبو يعلى الموصلي بسند ضعيف؛ لضعف محمد بن عبد الرحمن بن أبي ليلى لكن لم ينفرد به فقد رواه أحمد بن حنبل من طريق الحكم عن مقسم عنه» «أخرجه سنن أبي داود برقم: 2367، وأخرجه سنن ابن ماجه برقم: 1680، 1681، وأخرجه مسند أحمد برقم: 16663، 16668، 16675، 16688، 21866، 21877، 21904، 21923، 21943، وأخرجه سنن الدارمي برقم: 1730، وأخرجه فتح الباري برقم: 1836، وأخرجه السنن الكبرى للبيهقي برقم: 8083، 8085، وأخرجه المستدرك على الصحيحين برقم: 1598، 1603، 1606، وأخرجه صحيح ابن خزيمة برقم: 1963، 1983، وأخرجه المعجم الكبير للطبراني برقم: 1417، 7125، 7127، 7128، 7129، 7130، 7131، 7132، 7148، 7149، 7150، 7151، 7152، 7153، 7154، وأخرجه المعجم الأوسط للطبراني برقم: 1691، 1692، 5234، 6135، 8138، 8391، 9390، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 4156، 4568، 4970، 7839، 7840، 9264، 9294، وأخرجه معرفة السنن والآثار برقم: 8849، 8854، 8875، وأخرجه شرح السنة برقم: 1759، وأخرجه السنن الصغير للبيهقي برقم: 1345»