وَعَنِ ابْنِ عَبَّاسٍ
قَالَ: إِنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ احْتَجَمَ وَهُوَ مُحْرِمٌ وَاحْتَجَمَ وَهُوَ صَائِمٌ
The Prophet (sallallahu alayhi wa sallam) had himself cupped when he was wearing the ihram and also when he was fasting.
Mishkat al-Masabih 1912, Book 8, Fasting, Hadith 46. 1 min read