Volume 3 · Book 40 · Hadith 569
Narrated Rafi 'bin Khadij and Sahl bin Al Hathma: Allah's Apostle forbade the sale of Muzabana, i.e. selling of fruits for fruits, except in the case of 'Araya; he allowed the owners of 'Araya such kind of sale.
— Sahih Bukhari, Volume 3, Book 40: Distribution of Water, Hadith #569