Surah Al-An'am [The Cattle]
Ayat 54. When those who believe in Our Ayat (proofs, evidences, verses, lessons, signs, revelations, etc.) come to you, say: "Salà¸mun 'Alaikum" (peace be on you); your Lord has written Mercy for Himself, so that, if any of you does evil in ignorance, and thereafter repents and does righteous good deeds (by obeying Allah), then surely, He is Oft -Forgiving, Most Merciful.
Dan apabila orang-orang yang beriman kepada ayat-ayat Kami dtg kepadamu, maka katakanlah, "Salamun 'alaikum (selamat sejahtera untuk kamu)". tuhanmu telah menetapkan sifat kasih sayang pada diri-Nya,(yaitu) barang siapa berbuat kejahatan di antara kamu kerana kebodohan, kemudian dia bertaubat setelah itu dan memperbaiki diri, maka Dia Maha Pengampun Maha Penyayang.
Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah [S.A.W] said, "Allah says: `I am just as My slave thinks of Me when he remembers Me "I am with him".' By Allah! Allah is more pleased with the repentance of His slave than one of you who unexpectedly finds in the desert his lost belongings. `He who comes closer to Me one span, I come closer to him a cubit; and he who comes closer to Me a cubit, I come closer to him a fathom; and if he comes to Me walking, I come to him running".
[Al-Bukhari and Muslim].
Lesson : as mentioned above in Surah Al-An'am [The Cattle] Ayat 54. "if any of you does evil in ignorance, and thereafter repents and does righteous good deeds (by obeying Allah SWT then surely, He is Most Forgiving, Most Merciful".
This Hadith highlights the merits of sincere repentance and then expecting good treatment of Allah. But this has to be backed by good actions, in the same way as one can hope for good results after ploughing and sowing seeds. It is obvious that one who accomplishes good deeds will expect good consequences, and one who does evil deeds will expect evil consequences. Allah will treat people according to their expectation that are founded on their actions, and the reward will match their deeds.