It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) handed over a man (a captive) to someone and said: "Guard him." The narrator says that he became heedless of him and the man escaped. Then the Messenger of Allah (peace and blessings be upon him) asked: "What happened to the man?" He said: O Messenger of Allah! I became heedless of him and he got away. So the Messenger of Allah (peace and blessings be upon him) said: "May Allah cut off both your hands." The narrator says that then (out of fear) that person raised his hands like this, so the Messenger of Allah (peace and blessings be upon him) asked: "What is the matter with you?" He said: O Messenger of Allah! You said such and such about me. He (peace and blessings be upon him) said: "Lower your hands, for I have asked Allah, the Mighty and Majestic, that whichever member of my Ummah I supplicate against, Allah Almighty makes that supplication a means of forgiveness for him."
These are the words of Ali bin al-Hasan.
And in the narration of Zayd bin al-Hubab it is that he (peace and blessings be upon him) handed that man over to the Mother of the Believers Sayyidah Hafsah bint Umar (may Allah be pleased with her); then he mentioned the like of it.