Ruling on trying to commit suicide and failing

Taking poison to commit suicide is one of the major sins, even if the person did not die of it. However, the case does not fall under the general meaning of the Hadith where the Prophet (peace be upon him) said, "Anyone who kills themselves with something will be tormented with it on the Day of Resurrection" for this person did not actually kill themselves. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.