Sayyiduna Fadalah bin Ubayd (may Allah be pleased with him) narrates: I was with the Prophet (peace and blessings be upon him). He called for water and drank, so I said: "Were you not fasting?" He (peace and blessings be upon him) said: "Yes indeed, but I vomited."
Hadith Referenceالمعجم الكبير للطبراني / باب الفاء / 15870