Abu Sa'id reported that Allah's Apostle (ﷺ) prohibited that fresh dates and grapes be mixed together and that fresh dates and unripe dates be mixed together.
Sahih Muslim Book 36, Hadith 23