The Messenger of Allah ﷺ was cupped on the top of his foot while in the state of ihram, due to a pain he was suffering from.
أن رسول الله ﷺ احتجم وهو محرم على ظهر القدم من وجع كان به.
Abu Dawud (1837), Nasai (2849), and Tirmidhi in Shamail (358) all narrated it through the hadith of Abdul-Razzaq, who said, "Maamar narrated to us, from Qatada, from Anas," and he mentioned it.This same route was also narrated by Imam Ahmad (12682), and Ibn Khuzayma (2659), Ibn Hibban (3952), and Hakim (1/435) graded it sahih, saying, "Sahih according to the criteria of the two Shaykhs."However, Abu Dawud found fault with it, saying, "I heard Ahmad say, 'Ibn Abu Aruba transmitted it as mursal,' meaning from Qatada."I say, Maamar is one of the well-known companions of Qatada, and even though Ibn Abu Aruba had a better memory than Maamar, his transmitting it as mursal does not create a defect in the one who narrated it as connected, either because it represents an addition from a trustworthy narrator, or perhaps because Qatada himself narrated it both ways.His statement, "on the back of the foot," should be understood as referring to more than one occasion, as is customary in such cases, and this is the view Ibn Khuzayma leaned toward. Accordingly, there is no contradiction between the hadiths of Ibn Abbas and Anas.Meanwhile, Mutamir bin Sulayman left the matter unspecified, for he said, "I heard Humayd say, Anas was asked about cupping for one in ihram, and he said, 'The Messenger of Allah ﷺ was cupped for a pain he had.'"This was narrated by Imam Ahmad (13816) from Ali bin Abdullah, who said, "Mutamir narrated to us," and he mentioned it.But Ibn Khuzayma (2658) narrated it from Muhammad bin Abdul-Ala Sanani, who said, "Mutamir narrated to us," and in it he said, "for a pain he found in his head." Thus the hadith reverts to matching the hadith of Ibn Abbas.