Sunan an-Nasa'i, Book 23, Hadith 58 (Nasa'i 2497)

Abu Umamah bin Sahl bin Hunaif said:

concerning the Verse in which Allah, the Mighty and Subline, says: And do not aim at that which is bad to spend from it." This refers to had quality dates. The Messenger of Allah forbade taking bad quality dates as Sadaqah.