From Sahih Bukhari (Hadith 2384):
Narrated Rafi` 'bin Khadij and Sahl bin Abi Hathma:Allah's Messenger (ﷺ) 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
Reference: Bukhari 2384