The Quran presents mercy first as something God has chosen to bind Himself to. Before it is anything people do, it is His attribute, and He has decreed it for Himself: "He has decreed that mercy is His attribute" (6:12). That mercy covers all of creation. It is named at the opening of nearly every sura. It reaches sinners who repent, it comes down to people through scripture and messengers, and it is meant to show in how believers treat one another.
Mercy as God's Self-Decreed Attribute
The Quran says twice that God "has decreed that mercy is His attribute" (6:12, 6:54). The Arabic is kataba ʿalā nafsihi al-raḥmah, literally "He has written mercy upon Himself." Kataba is the verb used for something prescribed and binding, and ʿalā is the preposition of obligation, so the One who owes nothing to anyone has committed Himself to mercy by His own decree1 2. Its reach has no limit. God says, "My mercy encompasses all things" (7:156), and the angels around the throne pray, "Our Lord, Your mercy and Your knowledge encompass all things" (40:7). Our Lord "possesses infinite mercy" (6:147). The Quran contrasts this with human nature: if people held God's treasures of mercy, they would hoard them for fear of running out (17:100)3.
This is why every sura except Sura 9 opens with "In the name of God, Most Gracious, Most Merciful," and why the daily Contact Prayers begin with the same reminder4 5. Al-Rahman (Most Gracious) and Al-Raheem (Most Merciful) are the names of God the Quran mentions most, 57 and 114 times. The first speaks of the abundance of His grace, the second of His constant love and mercy6. The world, its beauty, and the chance we were given at all are themselves mercies we did not earn3.
Mercy and Forgiveness
The Quran's clearest call is never to give up hope: "O My servants who exceeded the limits, never despair of GOD's mercy. For GOD forgives all sins. He is the Forgiver, Most Merciful" (39:53). The second time the Quran says God has decreed mercy for Himself, it ties that decree directly to repentance: "anyone among you who commits a transgression out of ignorance, and repents thereafter and reforms, then He is Forgiving, Most Merciful" (6:54). Repentance has three parts: recognizing the wrong, asking God's forgiveness, and not persisting in it knowingly (3:135)4. The God who forgave those who worshiped the golden calf once they repented (7:153) turns the sins of the repentant into credits (25:70)4.
Despair is the very thing God's mercy guards against. Satan promises poverty and commands evil, while God promises forgiveness and grace. God repeats His forgiveness throughout the Quran because Satan never stops whispering that we are beyond it7.
Mercy Alongside Justice
Mercy is not the same as indifference. In the same verse where God's mercy "encompasses all things," He says, "My retribution befalls whomever I will," and that He specifies His mercy for those who lead a righteous life, give the obligatory charity, and believe in His revelations (7:156-157). Infinite mercy and unavoidable retribution for the guilty stand together in one verse (6:147). The call never to despair of His mercy is followed at once by the command to submit to God before the retribution comes (39:53-55). The reckoning is just: no one receives undue punishment, every good deed is counted, and God is free to forgive whom He wills6.
The same balance shapes the Quran's law. In cases of murder, equivalence is decreed, but the victim's kin may pardon the killer in exchange for fair compensation, and the Quran calls this "an alleviation from your Lord and mercy" (2:178). The footnote to 2:178 points out that every kind of excuse is provided to spare lives, including the murderer's, and the Quran prefers compensation to execution8. The Quran does not lay down punishments without also speaking of leniency and pardon (42:40)9.
Scripture and Messengers as Mercy
One of the main ways mercy reaches people is through guidance. The Quran calls itself "a scripture that is fully detailed, with knowledge, guidance, and mercy for the people who believe" (7:52) and says it brings "healing and mercy for the believers" while only increasing the wickedness of the transgressors (17:82)10. The scripture given to Moses was likewise "a beacon and mercy," and the Quran is to be followed "that you may attain mercy" (6:154-155). Listening to it is itself a way to receive mercy: "When the Quran is recited, you shall listen to it and take heed, that you may attain mercy" (7:204)3.
Messengers carry this mercy too. "We have sent you out of mercy from us towards the whole world" (21:107). Even the Prophet's gentleness came from God: "It was mercy from GOD that you became compassionate towards them. Had you been harsh and mean-hearted, they would have abandoned you" (3:159).
The Mercy Asked of Believers
God's mercy is meant to show in His servants. Among those who take the steep path are those who exhort "one another to be kind" (90:17). The believers are "kind and compassionate amongst themselves" (48:29). Toward parents, the believer is to "lower for them the wings of humility, and kindness, and say, 'My Lord, have mercy on them, for they have raised me from infancy'" (17:24). Between spouses God placed "love and care" (30:21). The Arabic there is mawaddah wa raḥmah, love and mercy.
The Quran links the mercy we show to the mercy we hope for: "They shall treat them with kindness and tolerance; do you not love to attain GOD's forgiveness? GOD is Forgiver, Most Merciful" (24:22). Believers "when angered they forgive," and although just requital is permitted, "those who pardon and maintain righteousness are rewarded by GOD" (42:37, 42:40)6. Humans can be merciful by God's leave, but only He is "the Most Merciful" of all the merciful ones (7:151)11. This suggests that any mercy a person shows is a small reflection of His.