Sayyiduna Usamah bin Zayd (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "The cupper (hajim) and the cupped (mahjum) both have no fast."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصيام / 8277