(18) باب بَيْعِ الطَّعَامِ مِثْلاً بِمِثْلٍ
Abu Huraira (Allah be pleased with him) reported that Allah's Messenger (ﷺ) deputed a person to collect revenue from Khaibar. He brought fine quality of dates, whereupon Allah's Messenger (ﷺ) said:
Are all the dates of Khaibar like this)? He said: No. We got one sa' (of fine dates) for two sa's (of inferior dates), and (similarly) two sa's for three sa's. Thereupon Allah's Messenger (ﷺ) said: Don't do that rather sell the inferior quality of dates for dirhams (money), and then buy the superior quality with the help of dirhams.
Reference: Sahih Muslim 1593 b
In-book reference: Book 22, Hadith 121
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3870