صحيح مسلم
From Sahih Muslim (Hadith 5140):
Anas reported that Allah's Messenger (ﷺ) was asked about the use of Khamr from which vinegar is prepared. He said:No (it is prohibited)
Reference: Muslim 5140