You cannot plant cabbage, corn, potatoes and dill in the same bed with tomatoes.
At the same time, borage, basil, parsley, and garlic will grow well next to tomatoes.
Garlic, basil and parsley go best with tomatoes.
In general, most herbs, with the exception of dill, fennel and rosemary, grow well near tomatoes.
Borage is also an amazing plant that attracts pollinators. Some of these pollinators, like larvae, are insectivorous and destroy tomato pests.
Tomatoes are not pollinated directly by bees, and borage will be a good neighbor for tomatoes.
It is also not recommended to place beds with nightshade crops next to tomatoes.
They suffer from the same diseases as tomatoes, and a disease in one plant will quickly infect the others.
Kohlrabi, cauliflower, and corn should not be planted next to tomatoes.
Potatoes are considered to be one of the worst neighbors for tomatoes.