Abu Huraira (Allah be pleased with him) reported like this from Allah's Messenger (ﷺ).

Sahih Muslim Book 21 Hadith 2

Sahih Muslim #1511 b

The Book of Transactions 21:2

Abu Huraira (Allah be pleased with him) reported like this from Allah's Messenger (ﷺ).

Chapter: The invalidity of Mulamasah and Munabadhah transactions

Grade: Sahih