Jami` at-Tirmidhi, Book 8, Hadith 39 (Tirmidhi 720)

Abu Hurairah narrated that :

the Prophet said: "Whoever is overcome by vomiting, then he is not required to make up (the fast), and whoever vomits on purpose, then he must make it up."