Albert Camus wrote in the preface to The Myth of Sisyphus
The fundamental subject of "The Myth of Sisyphus" is this: it is legitimate and necessary to wonder whether life has a meaning; therefore it is legitimate to meet the problem of suicide face to face. The answer, underlying and appearing through the paradoxes which cover it, is this: even if one does not believe in God, suicide is not legitimate.
From this position there is no way to make death harmless by anything that one might try to do. Believing there might be is a kind of delusion to justify the absurdity of pushing the rock up the hill. It is absurd, but suicide is not legitimate.
Solomon wrote in Ecclesiates I:12-15:
I, the Teacher, was king over Israel in Jerusalem.
I applied my mind to study and to explore by wisdom all
that is done under the heavens.
What a heavy burden God has laid on mankind!
I have seen all the things that are done under the sun;
all of them are meaningless, a chasing after the wind.
What is crooked cannot be straightened;
what is lacking cannot be counted.
Again there is nothing we can do to make death harmless - even if we were able to live as a king.
What makes death appear harmful is the sense that we have wasted a short life. What makes the past a kind of hell is that there is no way to go back and fix that wasted life. Even if we could, there is nothing we could do because "what is crooked cannot be straightened" and that rock will just roll back down the mountain again.
And yet, Camus faced life without suicide.
And yet, Solomon could write (Ecclesiates 12:6-7):
Remember him—before the silver cord is severed,
and the golden bowl is broken;
before the pitcher is shattered at the spring,
and the wheel broken at the well,
and the dust returns to the ground it came from,
and the spirit returns to God who gave it.
Camus, A. The Myth of Sisyphus. Translator Justin O'Brien. 1955. Retrieved on May 14, 2019 at https://archive.org/details/AlbertCamusTheMythOfSisyphus
Ecclesiates 1:12-15 New International Version Retrieved on May 14, 2019 at https://www.biblegateway.com/passage/?search=Ecclesiastes+1&version=NIV
Ecclesiates 12:6-7 New International Version Retrieved on May 14, 2019 at https://www.biblegateway.com/passage/?search=Ecclesiastes+12&version=NIV