Jabir b. 'Abdullah (Allah be pleased with them) reported that Messenger of Allah ﷺ forbade the types of sales as described before.
عَنْ عَطَاءٍ وَأَبِي الزُّبَيْرِ أَنَّهُمَا سَمِعَا جَابِرَ بْنَ عَبْدِ اللَّهِ يَقُولُ نَهَى رَسُولُ اللَّهِ ﷺ فَذَكَرَ بِمِثْلِهِ