Sayyidina Jabir (RA) ibn Samurah narrated : When Allah’s Messenger (SAW) stayed with Abu Ayyub . . and had eaten hi meal, he would return what remained. One day, he returned to him food from which he had eaten nothing. When Abu Ayyub s.i came to him and mentioned that, the Prophet (SAW) said, “There was garlic in it.” He asked, “0 Messenger of Allah, is it unlawful?” He said, “No, but I dislike it because of its odour.”
[Muslim 2053, Ahmed 23596]