The mercy of Allah falls under two categories
General Mercy: It comprises all creatures. All created beings are shown mercy from Allah, as He has created them and raises and provides for them, in addition to other countless blessings that He bestows upon them.
{...Surely, Allah is Ever-Compassionate, Most Merciful to mankind.}
[Surat al-Baqarah: 143]
{Surely, He has been Most Merciful towards you.}
[Surat al-Isrā’: 66]
Special Mercy: It leads to happiness in this world and in the Hereafter. This kind of mercy is only shown to the believers.
{...And He has been Most Merciful to the believers.}
[Surat al - Ahzāb: 43]
{Their Lord gives them glad tidings of mercy from Him, and blessed satisfaction, and gardens...}
[Surat at - Tawbah: 21]