Answer
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
1- Hajj is not obligatory except on those who are able to perform it. This includes physical and financial ability.
2- Therefore, Hajj is not obligatory on a person who is in debt. However, if a person has a long-term loan and he is required to pay only a certain amount each month, then his debt is only that which is due each month. If he pays off all the debt and then nothing is left with him to make Hajj, then Hajj is not obligatory on him. But if he pays the monthly dues and then has enough money to make Hajj, then he should make Hajj because it is obligatory on him.
In his response to your question, Sheikh Ahmad Kutty, a senior lecturer and Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states:
The Prophet (peace be upon him) said, “Islam is built upon five pillars: testifying that there is no true god except Allah and that Muhammad is the Messenger of Allah, performing Prayer, paying the zakah, making the pilgrimage to the Sacred House (Hajj), and fasting the month of Ramadan.” (Al-Bukhari)
Hajj is obligatory only on those who can afford it both financially and physically. It is crucial that the fare and provisions for this sacred journey be solely derived from lawful earnings, totally free of unlawful sources; it is equally important that they be free of all outstanding debts.
Since you have accumulated arrears of student loans that are outstanding, you are not allowed to undertake the trip to Hajj. Your first priority is to pay your debtors. Hajj is obligatory only if you have enough resources remaining after paying them. So you should not consider Hajj unless you have come clean on your record of payment.
The Prophet (peace and blessings be upon him) has warned us against performing acts of worship with tainted resources. We read in the Hadith: “Verily, Allah, the most Exalted, is Pure and He accepts only that which is pure; Verily, Allah commands the faithful with the same order He commands the apostles: ‘O Messengers! Eat of what is clearly halal and wholesome, and do good works.’” Then he mentioned (by way of illustration) the case of a man, who undertakes, after having traveled long distances, with disheveled appearance, and then raises his hands in supplication saying, ‘My Lord! My Lord!’ while his food comes from unlawful sources and his drink comes from unlawful sources, his clothes are from unlawful sources, and his entire body is nurtured by haram; so how would Allah answer his Prayer?.” (Muslim)
Almighty Allah knows best.
Editor’s note: This fatwa is from Ask the Scholar’s archive and was originally published at an earlier date.
Source: Excerpted, with slight modifications, from: www.muslims.ca