The ruling on lending money on the condition of taking half of the profit
If a person borrows money from someone for trade on the condition that half of the profit goes to the lender, this is forbidden and impermissible, because the rule among the scholars is that every loan that brings a benefit is usury (riba). But it is better for a person to say: Take this money, trade with it, and half of the profit is yours. If someone asks: What is the difference between this and that?
One person gave another ten thousand rupees as a loan and said: This ten thousand is a loan on the condition that half of the profit will be mine. The answer is that this is forbidden, because this loan has brought a benefit. But if he says: Take this ten thousand, trade with it, and half of the profit is yours, this is lawful. The difference between the two is that in a loan, if a loss occurs, the borrower must bear it, because he took ten thousand as a loan and ten thousand became established as owed by him and obligatory to repay. But in the case of mudarabah, when he says: Take this ten thousand, trade with it, and half of the profit is yours, if the money suffers a loss or the money is destroyed, then this is the loss of the one who gave the money (the owner of the capital).
In the first case, if a loss occurs, the one who took the loan will be the one responsible for that loss and will have to pay the ten thousand. In the case of mudarabah, however, if a loss occurs or the money is destroyed, the owner of the money alone must bear this loss (while the effort of the one who worked is lost). This is the clear difference between the two.
Reference: Ibn Uthaymin: Liqa al-Bab al-Maftuh: 9/169