Kohelet (Ecclesiastes)
Ecclesiastes 4:3
"Better than both is the one who has not yet been born, who has not seen the evil that is done under the sun." This verse expresses a pessimistic view suggesting non-existence may be preferable to existence.
וְטוֹב֙ מִשְּׁנֵיהֶ֔ם אֵ֥ת אֲשֶׁר־עֲדֶ֖ן לֹ֣א הָיָ֑ה אֲשֶׁ֤ר לֹֽא־רָאָה֙ אֶת־הַמַּעֲשֶׂ֣ה הָרָ֔ע אֲשֶׁ֥ר נַעֲשָׂ֖ה תַּ֥חַת הַשָּֽׁמֶשׁ׃
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 in Kohelet is the biblical background underlying the Beit Shammai position that non-creation would have been preferable.