The Messenger of Allah (ﷺ) forbade muhaqalah, muzabanah, mukhabarah, and mu'awanah. One of the two narrators from Hammad said the word mu'awamah, and other said: "selling many years ahead". The agreed version then goes: and thunya, but gave license for 'araya.
Sunan Abi Dawud Book 23, Hadith 79