There is no Zakaah on vegetables such as tomatoes, cucumbers or on fruits like figs, pomegranates, melons because they are not measured or stored but if one happens to deal with hem then he has to pay the zakaah after one year if their value reaches one nisaab as is the case with other tradable goods.
It was narrated from Abu Sa’eed al-Khudri (may Allaah be pleased with him) that the Prophet (peace and blessings of Allaah be upon him) said: “There is no zakaah due on less than five wasqs of dates or grains.” Narrated by Muslim (979).
The relevant point here is “less than five wasqs”, which indicates that measures are relevant. That which is not measurable is not subject to zakaah.
There is also no Zaakah on other fruits such as peaches, pears, apples, apricots, figs and walnuts.
Al-Nawawi said in al-Majmoo’ (4/435): The texts of al-Shaafa’i and his companions are agreed that there is no zakaah on figs, apples, quince, pomegranates, peaches, walnuts, apricots, bananas, and so on.
The scholars of the Standing Committee for Issuing Fatwas said: Figs are not subject to zakaah, because they are fruits like pomegranates and pears and so on, and they are not things that are measured or stored.
Fataawa al-Lajnah al-Daa’imah (9/233).
No zakaah is due on these crops; rather zakaah is due on dates and grapes. As for olives, pomegranates, oranges, apples and citrons, no zakaah is due on any of them. But if a person sells them and gets money for them and it stays with him for a whole year, then he has to pay zakaah, but this is zakaah on money, not fruit.
Hence a believer must be very careful in what he is dealing with and pay attention to these details as well. Keep yourself educated on such things and avoid falling into sin and transgression.
And Allaah knows best.
May Allah help us all.