If a person cannot afford to go on pilgrimage, how can he compensate for missing out on this great Islamic duty to earn forgiveness of his past sins?

The pilgrimage is a duty that must be fulfilled by every Muslim who is able to undertake it. The condition of ability is most important, because a person who is unable to do it does not have a duty to fulfill. The condition of ability is both physical and financial. Physical ability includes not only a degree of health that enables one to travel and perform all the strenuous tasks without too much strain, but also one’s own safety. The financial ability includes leaving his family enough money for their living expenses during his absence. A person who does not meet this condition of ability is not required to do the pilgrimage. He does not have to compensate in any way.

While every Muslim is keen to do the pilgrimage, because it ensures forgiveness of all past sins, a person who does not offer the pilgrimage because he cannot afford it does not lose much. Forgiveness of past sins can be achieved in a variety of ways, such as repentance, doing different forms of voluntary worship, serving the community, helping a person in distress, etc.