Praise be to Allah.
In fact this transaction consists of both a rental and a loan. Regarding the money that is to be paid in advance, part of it is rent and the other part is a loan.
The landlord will let the tenant off part of the rent in return for this loan.
One of the matters on which the scholars are agreed is that every loan that brings a benefit is prohibited. Based on that, it is not permissible to enter into this contract in this form.
Please see also the answer to question no. 59867 .
And Allah knows best.