[Machine] The Prophet ﷺ prohibited two types of dates, the dates known as Juhroor and Hubayq, and there were some people who would collect the bad fruits and then take them out as charity. So they were forbidden from two types of dates. It was revealed: "And do not give away (or spend) that which is evil to spend." [Al-Baqarah 267] This narration was attributed to Abu Al-Walid and it was transmitted by Muslim ibn Ibrahim and Muhammad ibn Kathir from Sulaiman ibn Kathir.
أَنَّ النَّبِيَّ ﷺ نَهَى عَنْ لَوْنَيْنِ مِنَ التَّمْرِ الْجُعْرُورِ وَلَوْنِ الْحُبَيْقِ وَكَانَ نَاسٌ يَتَيَمَّمُونَ شِرَارَ ثِمَارِهِمْ فَيُخْرِجُوَنَهَا فِي الصَّدَقَةِ فَنُهُوَا عَنْ لَوْنَيْنِ مِنَ التَّمْرِ فَنَزَلَتْ {وَلَا تَيَمَّمُوا الْخَبِيثَ مِنْهُ تُنْفِقُونَ} [البقرة 267] أَسْنَدَهُ أَبُو الْوَلِيدِ وَأَرْسَلَهُ مُسْلِمُ بْنُ إِبْرَاهِيمَ وَمُحَمَّدُ بْنُ كَثِيرٍ عَنْ سُلَيْمَانَ بْنِ كَثِيرٍ