We used to be given a mixed-quality date called jam as our ration during the time of the Messenger of Allah ﷺ, and we would sell two saa of it for one saa of better dates. When this reached the Messenger of Allah ﷺ, he said, "Not two saa of dates for one saa, nor two saa of wheat for one saa, nor two dirhams for one dirham."
حدثني إسمعيل بن مسعود قال حدثنا خالد قال حدثنا هشام عن يحيى بن أبي كثير عن أبي سلمة بن عبد الرحمن قال حدثنا
كنا نرزق تمر الجمع على عهد رسول الله ﷺ فنبيع الصاعين بالصاع فبلغ ذلك رسول الله ﷺ فقال لا صاعي تمر بصاع ولا صاعي حنطة بصاع ولا درهما بدرهمين
Bukhari narrated it in the Book of Business Transactions, Chapter on Selling Mixed Dates, Hadith: 2080, and Muslim in the Book of Sharecropping, Chapter on Selling Food Like for Like, Hadith: 1595, from the hadith of Yahya bin Abu Kathir through this route, and it is in Al-Kubra, Hadith: 6147.