Narrated Abdullah ibn Abbas:
The Messenger of Allah (ﷺ) had himself cupped when he was fasting and wearing ihram (pilgrim garb).