Ask three questions: Who owns the asset? Who bears genuine ownership risk? What exactly is the lessee paying for?
If the lessor really owns the asset, bears ownership-related risk, and charges rent for actual use, the structure has the substance of leasing (إجارة). If those elements disappear, it may be a lease only in name.