Alchemists searching for gold in the wrong place
There once were people who spent their whole lives in front of a furnace. They mixed metals, heated them, cooled them, then tried again. They had one goal: turning cheap copper or tin into gold. That was alchemy, a pursuit chased by many people for centuries, and one that almost always ended empty-handed.
Al-Ghazali borrows this image for the title of his book, Kimiya-yi Sa'adat, The Alchemy of Happiness. In his view, there's an alchemy far more valuable than turning metal into gold. That is, transforming the human soul, from one that's base and ruled by desire, into one that's pure and close to God.
Like ordinary alchemy, this alchemy also has a recipe. The difference is that the recipe isn't kept in some goldsmith's laboratory. Al-Ghazali says this recipe belongs to the prophets, who were sent to teach people how to purify the heart, turn away from the world, and return to their Lord.
The man writing this was no ordinary figure. Al-Ghazali had once served as a professor at the Nizamiyya madrasa in Baghdad, one of the most prestigious academic positions of his era. Then, at the height of his career, he went through a severe inner crisis. He felt he had plenty of knowledge, but his heart still wasn't clean. He gave up his position, then spent years wandering, withdrawing into solitude, and worshipping.
From that period came his great work, Ihya Ulum al-Din, written in Arabic across several thick volumes. He wrote The Alchemy of Happiness later, in Persian, as a more condensed version for ordinary people. Its outline follows the Ihya, but its language sits much closer to the everyday reader.