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.
نَهَى رَسُولُ اللَّهِ ﷺ عَنِ الْمُحَاقَلَةِ وَالْمُزَابَنَةِ وَالْمُخَابَرَةِ وَالْمُعَاوَمَةِ قَالَ عَنْ حَمَّادٍ وَقَالَ أَحَدُهُمَا وَالْمُعَاوَمَةِ وَقَالَ الآخَرُ بَيْعِ السِّنِينَ ثُمَّ اتَّفَقُوا وَعَنِ الثُّنْيَا وَرَخَّصَ فِي الْعَرَايَا