Section 2 Mishkat al-Masabih 4230
Arabic hadith text
وَعَنْ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُ قَالَ: نَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَن أَكْلِ الثُّومِ إِلَّا مَطْبُوخًا. رَوَاهُ التِّرْمِذِيُّ وَأَبُو دَاوُد
Translation
‘Ali said God’s messenger forbade eating garlic unless it was cooked.Tirmidhi and Abu Dawud transmitted it.