It wasnarrated from Abu Hurairah that the Prophet (ﷺ) said:
"Whoeverunintentionally vomits, he does not have to make up for thefast, butwhoever makes himself vomit, has to make up for the fast." (ID)
English reference (ID): Vol. 1, Book 7, Hadith 1676 (ID)
Arabic reference (ID): Book 7, Hadith 1746 (ID)