It was narrated from Jabir that:the Prophet forbade Muhaqalah, Muzahanah, Mukhabarah and selling with an exception unless it is defined.
أَخْبَرَنَا زِيَادُ بْنُ أَيُّوبَ، قَالَ حَدَّثَنَا عَبَّادُ بْنُ الْعَوَّامِ، قَالَ حَدَّثَنَا سُفْيَانُ بْنُ حُسَيْنٍ، قَالَ حَدَّثَنَا يُونُسُ، عَنْ عَطَاءٍ، عَنْ جَابِرٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم نَهَى عَنِ الْمُحَاقَلَةِ وَالْمُزَابَنَةِ وَالْمُخَابَرَةِ وَعَنِ الثُّنْيَا إِلاَّ أَنْ تُعْلَمَ .
Nesai
The Book of Financial Transactions • Hadith 4633