Sahih Muslim, Book 21, Hadith 108 (Muslim 3871)

Jabir b. 'Abdullah (Allah be pleased with them) reported that Allah's Messenger (ﷺ) forbade the types of sales as described before.