For al-Ghazzali, earning a living is a virtue that attains spiritual reward as long as the living that is earned is in accord with the religious law. He emphasizes the importance of observing equity and justice in business transactions and doing good deeds for others.