Sahih al-Bukhari, Book 30, Hadith 47 (Bukhari 1869)

Narrated Thabit Al-Bunani:

Anas bin Malik was asked whether they disliked the cupping for a fasting person. He replied in the negative and said, "Only if it causes weakness."