Imam Ali ibn Musa al-Rida (a.s.) in response to the reason and secret of legislating Hajj says:
A. The reason for performing Hajj is to go to God and seek great reward, and to be cleansed of all sins that have been committed by man.
B. The purpose of Hajj is to seek forgiveness for past mistakes and to be cleansed and to resume his future deeds; because Hajj will cause forgiveness and atonement for his past sins and he is like a person who has just reached puberty and has been made responsible.
C. The reason for Hajj is its requirements; such as spending and accounting for wealth, putting the body through hardship and hardship, and refraining from sensual acts and taking pleasures.
D. Getting closer to the Creator Almighty through worship, humility, and enduring the hardships of a long journey between deserts, valleys, and plains, in heat and cold, between safety and fear, for a very long and continuous time.
E. The attainment of benefits for all people,
F. Seeking the need of God and fearing Him, and abandoning and distancing oneself from the ugly qualities of cruelty, hardness of heart, and fearlessness.
G. Not forgetting God, not forgetting Him, and not losing hope in anyone other than God, and engaging in action, seeking reward, and preventing the soul from corruption.
H. Benefiting or benefiting those who live in the east or west of the earth, in the desert or at sea, who have participated in the Hajj or not, from the merchant and trader, from the importer and seller or the buyer and customer, from the merchant and the needy.
I. Meeting the needs of the surrounding people, the places where pilgrims can gather, and the places where they can benefit from their services.