Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:6:141

And He it is who causes gardens to grow, ˹both˺ trellised and untrellised, and palm trees and crops of different ˹kinds of˺ food and olives and pomegranates, similar and dissimilar. Eat of ˹each of˺ its fruit when it yields and give its due ˹zakah˺ on the day of its harvest. And be not excessive. Indeed, He does not like those who commit excess.  

And He it is Who produces, creates, gardens, orchards, trellised, extending along the ground, as in the case of watermelons, and untrellised, rising upwards on a stem, such as palm-trees; and, He produces, palmtrees, and crops diverse in flavour, ˹diverse˺ in the shape and savour of its fruit and seed, and olives, and pomegranates, alike, in ˹terms of their˺ leaf (mutashābihan, ‘alike’, is a circumstantial qualifier) and unlike, in ˹terms of their˺ savour. Eat of the fruit thereof when it ripens, before its maturity ˹passes˺, and pay the due thereof, the alms as appropriate, on the day of its harvest (read yawma hasādahu or yawma hasādihi), that is, one tenth or half of it, and do not be prodigal, by giving it all away, so that nothing remains for ˹the consumption of˺ your dependants. Truly, God does not love the prodigal, who overstep ˹the bounds of˺ that which He has delimited for them.
القرآن:٦:١٤١

وَهُوَ الَّذِي أَنْشَأَ جَنَّاتٍ مَعْرُوشَاتٍ وَغَيْرَ مَعْرُوشَاتٍ وَالنَّخْلَ وَالزَّرْعَ مُخْتَلِفًا أُكُلُهُ وَالزَّيْتُونَ وَالرُّمَّانَ مُتَشَابِهًا وَغَيْرَ مُتَشَابِهٍ ۚ كُلُوا مِنْ ثَمَرِهِ إِذَا أَثْمَرَ وَآتُوا حَقَّهُ يَوْمَ حَصَادِهِ ۖ وَلَا تُسْرِفُوا ۚ إِنَّهُ لَا يُحِبُّ الْمُسْرِفِينَ  

{وهو الذي أنشأ} خلق {جنات} بساتين {معروشات} مبسوطات على الأرض كالبطيخ {وغير معروشات} بأن ارتفعت على ساق كالنخل {و} أنشأ {النخل والزرع مختلفا أكلُهُ} ثمره وحبه في الهيئة والطعم {والزيتون والرمان متشابها} ورقهما حال {وغير متشابه} طعمهما {كلوا من ثمره إذا أثمر} قبل النضج {وآتوا حقه} زكاته {يوم حصاده} بالفتح والكسر من العشر أو نصفه {ولا تُسرفوا} بإعطاء كله فلا يبقى لعيالكم شيء {إنه لا يحب المسرفين} المتجاوزين ما حدَّ لهم.