This arrangement is commonly called lease-to-own (إجارة واقتناء). It combines genuine leasing during the financing period with a separate route for ownership transfer at the end.
Two safeguards are central: the transfer promise should be in a separate document, and it should be unilateral rather than a future bilateral sale already binding on both sides.