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

Narated By Ibn Abbas : The Prophet was cupped while he was in the state of lhram, and also while he was observing a fast.