Mishkat al-Masabih #3488
Prescribed Punishments
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَعَنْ أَنَسٍ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ سُئِلَ عَنِ الْخَمْرِ يُتَّخَذُ خَلًّا؟ فَقَالَ: «لَا» . رَوَاهُ مُسلم
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.
About Mishkat al-Masabih
This hadith is #3488 from Mishkat al-Masabih, in the Book of Prescribed Punishments.