Beit Shammai and Beit Hillel debated for two and a half years whether it would have been better for man not to have been created. Beit Shammai ruled it would have been better not to have been created; Beit Hillel said it is better that he was created. They voted and concluded: it would have been better for man not to have been created, but since he has been created, he should examine his deeds.
תָּנוּ רַבָּנַן: שְׁתֵּי שָׁנִים וּמֶחֱצָה נֶחְלְקוּ בֵּית שַׁמַּאי וּבֵית הִלֵּל. הַלָּלוּ אוֹמְרִים: נוֹחַ לוֹ לְאָדָם שֶׁלֹּא נִבְרָא יוֹתֵר מִשֶּׁנִּבְרָא, וְהַלָּלוּ אוֹמְרִים: נוֹחַ לוֹ לְאָדָם שֶׁנִּבְרָא יוֹתֵר מִשֶּׁלֹּא נִבְרָא. נִמְנוּ וְגָמְרוּ: נוֹחַ לוֹ לְאָדָם שֶׁלֹּא נִבְרָא יוֹתֵר מִשֶּׁנִּבְרָא, עַכְשָׁיו שֶׁנִּבְרָא — יְפַשְׁפֵּשׁ בְּמַעֲשָׂיו. וְאָמְרִי לַהּ: יְמַשְׁמֵשׁ בְּמַעֲשָׂיו.
The Sages taught the following baraita: For two and a half years, Beit Shammai and Beit Hillel disagreed. These say: It would have been preferable had man not been created than to have been created. And those said: It is preferable for man to have been created than had he not been created. Ultimately, they were counted and concluded: It would have been preferable had man not been created than to have been created. However, now that he has been created, he should examine his actions that he has performed and seek to correct them. And some say: He should scrutinize his planned actions and evaluate whether or not and in what manner those actions should be performed, so that he will not sin.