Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: The Messenger of Allah (peace and blessings be upon him) married while he was in ihram, and had himself cupped while he was fasting.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12088