Permissibility of a Muslim tortured by disbelievers committing suicide

It is not permissible for those who are afflicted with sickness or severe harm from an enemy or the like to kill themselves because Allah (Exalted be He) says: And do not kill yourselves (nor kill one another). Surely, Allâh is Most Merciful to you. And whoever commits that through aggression and injustice, We shall cast him into the Fire, and that is easy for Allâh. (Part No. 22; Page No. 250) The Prophet (peace be upon him) also said, "Amongst the people who were before you, there was a man who had a wound. Growing impatient (with its pain), he took a knife and cut his hand with it and the blood did not stop until he died. Allah (Glorified and Exalted be He) said, 'My Slave hurried to bring death upon himself, so I have forbidden him (to enter) Paradise.'" (Agreed upon by Al-Bukhari and Muslim) Furthermore, the Prophet (peace be upon him) said, "Anyone who kills themselves with anything will be punished on the Day of Resurrection with it." (Agreed upon by Al-Bukhari and Muslim on the authority of Thabit ibn Al-Dahhak Al-Ansary) However, a Muslim should be patient, endure the torture and resort to Allah, asking Him for a way out. Allah (Glorified be He) says: Is not He (better than your gods) Who responds to the distressed one, when he calls on Him, and Who removes the evil, and makes you inheritors of the earth, generations after generations? He also says: Verily, along with every hardship is relief, Verily, along with every hardship is relief (i.e. there is one hardship with two reliefs, so one hardship cannot overcome two reliefs). (Part No. 22; Page No. 251) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.