Just like many characters in the bible, I also know what it's like to feel depressed even to the point of giving up on life. The solution to this is found in prayer:
Why should the sons and daughters of God be reluctant to pray, when prayer is the key in the hand of faith to unlock heaven’s storehouse, where are treasured the boundless resources of Omnipotence? Steps to Christ, p. 94Prayer is literally a lifeline, or rather, it is The Lifeline!
Prayer is the life of the soul. The prayer of faith is the weapon by which we may successfully resist every assault of the enemy. Signs of the Times August 24, 1904Prayer and God's word are so essential in spiritual warfare
Beware how you neglect secret prayer and a study of God’s word. These are your weapons against him who is striving to hinder your progress heavenward. [Messages to Young People, page 96]
The Word must be our weapon of warfare. Miracles can be wrought through the Word; for it is profitable for all things. Letter 75, 1896
Keep the mind filled with the precious promises found in the Bible, and when Satan comes in like a flood to overwhelm you, meet him with the weapon which the Word of God has provided, “It is written.” This will break his power and give you the victory (Historical Sketches, 129, 130).Song is also another powerful weapon
Song is a weapon that we can always use against discouragement. As we thus open the heart to the sunlight of the Saviour’s presence, we shall have health and His blessing. [Ministry of Healing, p. 254]Song can be an especially powerful spiritual weapon when the words are addressed to God as a prayer and contain promises from His word!
Also see, God's promises for the suicidal