The Messenger of Allah ﷺ forbade two transactions combined in one sale.
حدثنا هناد حدثنا عبدة بن سليمان عن محمد بن عمرو عن أبي سلمة
نهى رسول الله ﷺ عن بيعتين في بيعة
No references are available.
[Its isnad is hasan]. Nasai also narrated it in the Book of Business Transactions, chapter on "Two sales in one sale... etc," hadith 7/295, hadith 4636, from the hadith of Muhammad bin Amr, with the same wording.There are other narrations on this topic from Abdullah bin Amr [coming up: 1234, and Ahmad 2/174, 175, and Bayhaqi 5/343], and from Ibn Umar [Ibn Abdul-Barr in Tamhid 24/388], and from Ibn Masud [Ahmad 1/398], and others.