The meaning of the prohibition of two transactions in one transaction
Its meaning is that the Messenger of Allah ﷺ forbade two transactions in one transaction.
This prohibition will be understood in the sense that is stated in another place in the hadith; that is, it will be understood as referring to a transaction that involves outright usury or some form of trickery to arrive at it.
The case is that a person sells something on credit, then buys it back from the buyer himself in cash for a lower price.
For example, a shopkeeper sold a car for sixty thousand riyals on installments for a period of one year, then bought it back from that same buyer for less, in cash, for example for forty thousand riyals. This is making two transactions in one transaction, because here the item sold, which is the car, is sold twice: the first time at an exceptional credit price and the second time at a lower, but cash, price. There is no doubt that this dealing opens the door to trickery for usury. It would mean that he gives me forty thousand for a period of one year, then you pay him sixty thousand; in exchange for that, he gave you a car worth sixty and bought it for forty (and throughout the year he will keep collecting sixty thousand from you in installments).
This is why Abdullah ibn Abbas (may Allah be pleased with him) said regarding the issue of ‘inah: They are dirhams for dirhams, and you have only inserted a piece of silk between the two. That is, this is its reality: it is merely an exchange of money for money. That is why the Prophet ﷺ warned against it, saying: “When you engage in ‘inah transactions, take hold of the tails of cows, that is, you become busy with farming, are content with farming, and abandon jihad, Allah will impose humiliation upon you, upon your hearts, and will not remove it until you return to your religion.”