Question: A man said to another: “Sell and buy in such-and-such place, and I undertake for you whatever loss you incur in your trade,” and the guarantor had a purpose in this undertaking, namely to strengthen that market. Is it permissible for the man to take the loss (amount) from him?
The answer: The scholars of the madhhab have permitted such a case and deemed it sound; therefore, there is no objection, and Allah knows best.
Source: Min Thimār al-ʿIlm wa al-Ḥikmah vol.2