Prophet Muhammad (peace be upon him) disliked garlic and onions. He believed that they had a strong odor that could be offensive to others, and he encouraged his followers to avoid them, especially before prayer.
While there is no definitive record of other foods he disliked, some sources suggest that he also avoided extremely salty foods. This is likely because excessive salt intake can be unhealthy and can lead to various health problems.
It's important to note that these preferences were personal and not necessarily religious requirements. The Prophet Muhammad emphasized the importance of moderation in all things, including food.