Sahih Bukhari | Volume 7 | Hadith Number 597

Narrated by Ibn 'Abbas
The Prophet was cupped while he was fasting.