Shlach Lecha: Chapter 7
Before the world was created, how could it be written: "And... died"

Rabbi Yehuda wonders why God created Adam if He knew that Adam would sin and that He would have to sentence him to death. He wonders why those who study the Torah and those who don't both die in this world. Rabbi Yehuda and Rabbi Aba discuss why they are permitted to seek out the mysteries in the Torah but they have no right to inquire about the ways of God, as for example when it pertains to question such as those above. The conclusion is that there are things that are secret to God and that no one should even ask about them, except for Rabbi Shimon who can explain things to his generation openly.