It was reported from Abu Sa’eed al-Khudri (RA) that the Messenger of Allah (SAW) said:
“Among the Children of Israel there was a man who killed ninety-nine people.
Then he went out and came to a monk and asked him, ‘Can I repent?’ He said, ‘No,’ so he killed him.
Then he started asking, and a man said to him, ‘Go to such and such a town.’ But death caught up with him, so he inclined his chest towards (that town, as he was dying).
The angels of mercy and the angels of punishment disputed concerning him. Allah inspired (the good town) to come closer to him, and (the evil town) to move away from him, then He said, "Measure the distance between them."
They found that he was closer to (the good town) by a hand-span, so he was forgiven.”
(Bukhari and Muslim).