In Explanation of Wine, and the Threat to him who Drinks it - Section 1 Mishkat al-Masabih 3641

Arabic hadith text
وَعَنْ أَنَسٍ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ سُئِلَ عَنِ الْخَمْرِ يُتَّخَذُ خَلًّا؟ فَقَالَ: «لَا» . رَوَاهُ مُسلم
Translation

Anas told that the Prophet was asked about wine which was turned into vinegar* and forbade it. Muslim transmitted it.* This is said to have been done by putting onions or salt in it, or by placing it in the sun.