The Prophet (ﷺ) said, "Amongst the men of Bani Israel there was a man who had murdered ninety-nine
persons. Then he set out asking (whether his repentance could be accepted or not). He came upon 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 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), and so the angels of mercy and the angels of
punishment quarrelled amongst themselves regarding him. Allah ordered the village (towards which
he was going) to come closer to him, and ordered the village (whence he had come), to go far away,
and then He ordered the angels to measure the distances between his body and the two villages. So he
was found to be one span closer to the village (he was going to). So he was forgiven."
Sahih al-Bukhari Book 60, Hadith 137