the Prophet forbade Muhaqalah, Muzahanah, Mukhabarah and selling with an exception unless it is defined.

Sunan an-Nasa'i Book 44, Hadith 185