Deuteronomy 15 Provides for the Cancellation of Debt
Let's look at the scriptural text. The English Translation is from the New International Version but I encourage readers to review other translations at Bible Gateway.
At the end of every seven years you must cancel debts. This is how it is to be done: Every creditor shall cancel any loan they have made to a fellow Israelite. They shall not require payment from anyone among their own people, because the Lord’s time for canceling debts has been proclaimed. You may require payment from a foreigner, but you must cancel any debt your fellow Israelite owes you. However, there need be no poor people among you, for in the land the Lord your God is giving you to possess as your inheritance, he will richly bless you, if only you fully obey the Lord your God and are careful to follow all these commands I am giving you today. For the Lord your God will bless you as he has promised, and you will lend to many nations but will borrow from none. You will rule over many nations but none will rule over you.
If anyone is poor among your fellow Israelites in any of the towns of the land the Lord your God is giving you, do not be hardhearted or tightfisted toward them. Rather, be openhanded and freely lend them whatever they need. Be careful not to harbor this wicked thought: “The seventh year, the year for canceling debts, is near,” so that you do not show ill will toward the needy among your fellow Israelites and give them nothing. They may then appeal to the Lord against you, and you will be found guilty of sin. Give generously to them and do so without a grudging heart; then because of this the Lord your God will bless you in all your work and in everything you put your hand to. There will always be poor people in the land. Therefore I command you to be openhanded toward your fellow Israelites who are poor and needy in your land.
A portion of the passage in Hebrew.