The Prophet ﷺ forbade the sales called Al-Mukhabara, Al-Muhaqala and Al-Muzabana and the selling of fruits till they are free from blights. He forbade the selling of the fruits except for money, except the 'Araya.
سَمِعَ جَابِرَ بْنَ عَبْدِ اللَّهِ ؓ نَهَى النَّبِيُّ ﷺ عَنِ الْمُخَابَرَةِ وَالْمُحَاقَلَةِ وَعَنِ الْمُزَابَنَةِ وَعَنْ بَيْعِ الثَّمَرِ حَتَّى يَبْدُوَ صَلاَحُهَا وَأَنْ لاَ تُبَاعَ إِلاَّ بِالدِّينَارِ وَالدِّرْهَمِ إِلاَّ الْعَرَايَا