Sahih Bukhari Volume 003, Book 031, Hadith Number 160.

Narated By Ibn 'Abbas : The Prophet was cupped while he was fasting.