Jabir reported the Prophet as saying, “He who eats garlic or onions must keep away from us.” Or he said, “must keep away from our mosque,” or, “must sit in his house.” A pot containing green vegetables was brought to the Prophet, but on noticing that it had an odour he told them to give it to one of his Companions, to whom he said, "Eat, for I hold intimate converse with one with whom you do not."*
*The reference is here said to be to angels, or particularly to Gabriel. Cf. Mirqat, iv, 373
Abu Ayyub said that when food was brought to the Prophet he ate some of it and sent him what was left over. One day when he sent him a dish from which he had eaten nothing because it contained garlic, he asked him whether it was unlawful and he replied, “No; but I dislike it because of its odour;” so he said, “I dislike what you dislike."
Al-Miqdam b. Ma'dikarib reported the Prophet as saying, “If you measure out your food* you will be blessed in it."
*This is said to refer to such matters as buying and selling, and taking care that suitable portions are given to one’s children.