הַכֹּ֞ל כַּאֲשֶׁ֣ר לַכֹּ֗ל מִקְרֶ֨ה אֶחָ֜ד לַצַּדִּ֤יק וְלָרָשָׁע֙ לַטּוֹב֙ וְלַטָּה֣וֹר וְלַטָּמֵ֔א וְלַזֹּבֵ֔חַ וְלַאֲשֶׁ֖ר אֵינֶ֣נּוּ זֹבֵ֑חַ כַּטּוֹב֙ כַּֽחֹטֶ֔א הַנִּשְׁבָּ֕ע כַּאֲשֶׁ֖ר שְׁבוּעָ֥ה יָרֵֽא׃
All things come alike to all; there is one event to the righteous and to the wicked; to the good and to the clean and to the unclean; to him that sacrificeth and to him that sacrificeth not; as is the good, so is the sinner, and he that sweareth, as he that feareth an oath.
Zohar
Rabbi Yehuda was walking on the way with Rabbi Aba, and asked him: There is one thing I want to ask. Since the Holy Blessed One knew that the Human would sin against God, and that God would have to decree the Human's death, why did God create him? Behold, Torah existed 2,000 years before the creation of the world - but in the Torah it is written "when a human dies in a tent" (Numbers 19:14), [and also] "when a person dies" (Numbers 27:8), "and he died", "and Ploni lived and died". Why did the Holy Blessed One want from humans in this world, if one studies Torah day and night, one dies; and if one does not study Torah at all one dies? All have the same path. A person is separated from that world, as it is written "[the same fate is in store for all...] the good [person] and the sinner"(Ecclesiastes 9:2).