From the mercy of Allah (the Exalted) toward his slave is when the slave supplicates for a worldly need that he turns it away from him and gives him something better than it; or turn away some evil from him; or enrich in the afterlife or forgive his sins because of it.
Similarly in Al-Musnad and At-Tirmidhi on the authority of Jabir from the Prophet (may Allah bestow peace and blessings upon him) said,
"There is no one who supplicates without Allah giving them what they asked for or removing a like harm from them; as long as he does not supplicate for evil or to sever kinship ties."
In Al-Musnad and the authentic collection of Al-Hakim on the authority of Abu Sa'id that the Prophet (may Allah bestow upon him peace and blessings) said,
"There is no Muslim who supplicates, without a sin or severing of kinship ties, except Allah gives them one of three things; either he puts off his supplication; enriches him in the afterlife; removes from his a similar evil." They asked, "What if it is a lot?" He replied, "Allah is Greater." [Ahmad & Hakim]
According to the collection of Al-Tabarani,
"Or he is forgiven for his previous sins." Instead of, "Or removes from him a similar evil." [Al-Tabarani in Al-Awsat and Al-Haytami in Mujma Az-Zawaid]
At-Tirmidhi records the hadith from 'Abdah, raised report, like the hadith of Abu Sa'id.
In every state that you implore for forgiveness, in supplication with hope in Allah (the Exalted), necessitates forgiveness.
Allah, the Exalted, said,
"I am according to the opinion of my servant; so think of me as you wish." [Bukhari & Muslim]
In another narration,
"Only think good of Allah." [Ahmad, Ibn Hibban & Ibn al-Mubarak]
It is narrated from Sa'id Ibn Jubayr from Ibn Umar, elevated,
"Allah comes to the believer, on the day of judgement, closely then places a veil over the rest of creation and says, "I do recite to know each sin, Do you know? Do you realise?" He replies, "Yes, Yes." Then the servant turns to his right then left. "No harm will come to you my servant, I have veiled you from all my creation. There is no one between me or who could read your sins other than me. I have forgiven you all your sins that you have come with." He said, "How, O Lord?" He replies, "As you did not hope for forgiveness from another other than Me." [Tabarani & al-Haytami]
One of the greatest causes of forgiveness is when a servant commits a sin and does not hope for forgiveness from other than his Lord. He knows that he cannot be forgiven or taken into account from other than him.
We have spoken about this in the commentary of the Hadith of Abu Dhar,
"O my servants; I have declared oppression impermissible for myself." [Muslim, Tirmidhi, Ibn Majah, Ahmad and Al-Taylasi]
"As long as you supplicate and hope in me; I will forgive what you do and I am not concerned." [At-Tirmidhi, Imam Ahmed, Ad-Darami]
It means most of your sins and mistakes; do not boast of it, or display arrogance.
It is authenticated from the Prophet (may Allah bestow upon him peace and blessings) that he said,
"If one of you supplicates then he should amplify his desire as Allah does not deem it insignificant." [Muslim]
The sins of the servant, if great, the clemency and the forgiveness of Allah (the Exalted) is greater. It is nominal according to the clemency and forgiveness of Allah (the Exalted).
In the authentic collection of Al-Hakim from Jabir,
"A man came to the Prophet (may Allah bestow peace and blessings upon him) and said, "Alas, my sins." Two or three times. Then the Prophet (may Allah bestow upon him peace and blessings) said, "O Allah, your mercy is greater than sins and your mercy is hoped for when the action is performed." He said to him, "Repeat." He repeated and then he said "Repeat." He repeated. Then he said to him, "Arise, Allah has forgiven you." [Al-Hakim in Al-Mustadarak]
Some of them have said it means,
"O Sinful one, the clemency of Allah for your sins; is greater than your sin; the greater things are the clemency and forgiveness of Allah." [Diwan Abu Niwas]
"O Lord, I have sinned grievously; yet I know that your clemency is greater; I do not hope for anything except excellence; so whoever supplicates and the hope of the sinner; I have no means to you except hope; beautify your clemency then I submit." [Diwan Abu Niwas]