صحيح البخاري
From Sahih Bukhari (Hadith 1938):
Narrated Ibn `Abbas:The Prophet (ﷺ) was cupped while he was in the state of Ihram, and also while he was observing a fast
Reference: Bukhari 1938