Narrated Abdullah ibn Abbas: The Messenger of Allah ﷺ had himself cupped in his head when he was in the sacred state (wearing ihram due to a disease from which he was suffering.
Hadith Referenceسنن ابي داود / كتاب المناسك / 1836
Narrated Anas ibn Malik: The Messenger of Allah ﷺ had himself cupped on the surface of his foot because of a pain in it while he was in the sacred state (wearing ihram). Abu Dawud said: I heard Ahmad say: "Ibn Abi 'Arubah narrated it in Mursal form". Meaning from Qatadah.
Hadith Referenceسنن ابي داود / كتاب المناسك / 1837