Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:5700Muḥammad b. Bashhār > Ibn Abū ʿAdī > Hishām > ʿIkrimah

The Prophet ﷺ was cupped on his head for an ailment he was suffering from while he was in a state of Ihram. at a water place called Lahl Jamal. Ibn ʿAbbas further said: Allah s Apostle was cupped on his head for unilateral headache while he was in a state of Ihram .  

البخاري:٥٧٠٠حَدَّثَنِي مُحَمَّدُ بْنُ بَشَّارٍ حَدَّثَنَا ابْنُ أَبِي عَدِيٍّ عَنْ هِشَامٍ عَنْ عِكْرِمَةَ

عَنِ ابْنِ عَبَّاسٍ احْتَجَمَ النَّبِيُّ ﷺ فِي رَأْسِهِ وَهْوَ مُحْرِمٌ مِنْ وَجَعٍ كَانَ بِهِ بِمَاءٍ يُقَالُ لَهُ لَحْىُ جَمَلٍ وَقَالَ مُحَمَّدُ بْنُ سَوَاءٍ أَخْبَرَنَا هِشَامٌ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ أَنَّ رَسُولَ اللَّهِ ﷺ احْتَجَمَ وَهْوَ مُحْرِمٌ فِي رَأْسِهِ مِنْ شَقِيقَةٍ كَانَتْ بِهِ