From Sahih Muslim (Hadith 3851):
Jabir b. Abdullah (Allah be pleased with them) is reported to have said that Allah's Messenger (ﷺ) forbade the sale of a heap of dates the weight of which is unknown in accordance with the known weight of dates
Reference: Muslim 3851