It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Prophet Muhammad (peace and blessings be upon him) had cupping done on the top of his foot while in the state of Ihram due to pain in his foot.
Hadith Referenceصحيح ابن خزيمه / جماع أبواب ذكر أفعال اختلف الناس فى إباحته للمحرم، نصت سنة النبى صلى الله عليه وسلم أو دلت على إباحتها / 2659