وَعَنِ اِبْنِ عَبَّاسٍ رَضِيَ اَللَّهُ عَنْهُمَا;
«أَنَّ اَلنَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ اِحْتَجَمَ وَهُوَ مُحْرِمٌ، وَاحْتَجَمَ وَهُوَ صَائِمٌ»
The Messenger of Allah (sallallahu alayhi wa sallam) had himself cupped while he was in a state of Ihram, and had himself cupped while he was fasting. Related by Al-Bukhari.