Benefiting from a pledge in return for land
If someone gives a loan to another person, it is not permissible for him to stipulate to the borrower that he will take a benefit in return for the loan, because it is narrated from the Prophet ﷺ that he said:
“Every loan that brings a benefit is usury (riba).”
The scholars are unanimous on this. What is mentioned in the question, that the lender takes land from the debtor as a pledge and keeps benefiting from it until the debtor repays the loan, also falls under this category. Likewise, if the debt is owed by him, it is not permissible for the lender to take the produce of the land, or to benefit from it, in exchange for granting the debtor an extension of time, because the purpose of a pledge is only to put the taking of a loan or credit into a documented form and to give assurance that the loan will be repaid, not to benefit from it in return for the loan or in return for delay in repaying the loan.