Kohelet (Ecclesiastes)
Ecclesiastes 4:3
Kohelet states that better than both the living and the dead is one who has not yet been born and has not seen the evil deeds done under the sun. This verse is often cited as the biblical backdrop for the Beit Shammai position.
וְטוֹב֙ מִשְּׁנֵיהֶ֔ם אֵ֥ת אֲשֶׁר־עֲדֶ֖ן לֹ֣א הָיָ֑ה אֲשֶׁ֤ר לֹֽא־רָאָה֙ אֶת־הַמַּעֲשֶׂ֣ה הָרָ֔ע אֲשֶׁ֥ר נַעֲשָׂ֖ה תַּ֥חַת הַשָּֽׁמֶשׁ׃
and happier than either are those who have not yet come into being and have never witnessed the miseries that go on under the sun.
Why it matters — This verse provides the Tanach basis for the view that non-existence may be preferable, echoing Beit Shammai's position in the Talmudic debate.