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.”