Tomatoes

Immature tomatoes contain tomatine, which is present in every part of the plant and is toxic.

An excerpt from the article 10 facts about tomatoes

It is a natural substance used by the plant to defend itself against pests and diseases.

This is why tomatoes were once considered poisonous, but as they ripen, the amount of tomatin decreases.