There used to live a person in Bani-Israeel who, for all of his 200 years of life, only committed sins upon sins. When he died, people dragged his body and threw it on top of a rubbish tip. Allah (az’zawajal) sent a revelation to Hazrat’e Musa (alay his’salaam): “Oh Musa (alay his’salaam)! A person of mine has died. The people of Bani-Israeel have thrown him on a pile of dirt. Go, and give his body a bath and pray his funeral prayers and tell the people the same.” When Hazrat’e Musa (alay his’salaam) got there, he recognised the body. After completing the command of Allah (az’zawajal), Hazrat’e Musa (alay his’salaam) said, “Oh Allah (az’zawajal), this person was a very bad sinner, so instead of being punished, why has he been granted such a big reward?” Allah (az’zawajal) replied, “No doubt, he was likely to be punished severely but one day, he opened the Torah and he saw the name of My Beloved Messenger Muhammad (sallallahu ta’ala alaihi wa aalihi wa’sallam) and due to the love he had for that name, he kissed it and read Durood Shareef. Due to this respect and love he had towards the name, I have forgiven all of his sins.”
(Maqasi-dus-Salikeen)