Sahih al-Bukhari, Book 30, Hadith 45 (Bukhari 1867)

Narrated Ibn `Abbas:

The Prophet (ﷺ) was cupped while he was in the state of lhram, and also while he was observing a fast.