Narrated Abu Sa’id Al-Khudri: The Prophet, peace be upon him, said, “There was a man from Bani Israel who murdered ninety-nine persons. Then he set out asking (whether his repentance could be accepted or not). He came up to a monk and asked him if his repentance could be accepted. The monk replied in the negative and so the man killed him.
He kept on asking till a man advised him to go to such and such village. (So he left for it) but death overtook him on the way. While dying, he turned his chest towards that village (where he had hoped his repentance would be accepted), so the angels of mercy and the angels of punishment quarreled amongst themselves regarding him.
Allah ordered the village (towards which he was going) to come closer to him, and ordered the village (whence he was coming) to go far away. Then He ordered the angels to measure the distance between his body and the two villages. Thus he was found to be one span closer to the village (he was going to). So he was forgiven.”
[4: 676- O.B. Sahih Al-Bukhari)