Jabir bin Samura reported,

Whenever the Messenger of Allah ﷺ ate food, he would send the leftovers to Abu Ayub. Once he sent him some food from which he had not eaten, and it contained garlic.Abu Ayub came to him and asked, "Messenger of Allah, is it forbidden?"He replied, "No, but I disliked it because of its smell."Abu Ayub said, "Then I dislike what you dislike."

Ahmad 20897

Sahih

حدثنا عبد الله حدثنا أبو خيثمة زهير بن حرب حدثنا سعيد بن عامر حدثنا شعبة عن سماك يعني ابن حرب

عن جابر بن سمرة

أن رسول الله ﷺ كان إذا أكل طعاما بعث بفضله إلى أبي أيوب فبعث إليه بفضلة لم يأكل منها فيها ثوم فأتاه أبو أيوب فقال يا رسول الله أحرام هو قال لا ولكني كرهته من أجل ريحه فقال أبو أيوب فإني أكره ما كرهت

أحمد 20897صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Jabir bin Samura
Numbering
Darussalam 20897
Ahmad 20897