Sunan Ibn Majah, Book 7, Hadith 39 (Ibn Majah 1676)

It was narrated from Abu Hurairah that the Prophet (ﷺ) said:

“Whoever unintentionally vomits, he does not have to make up for the fast, but whoever makes himself vomit, has to make up for the fast.”