Acharei Mot: Chapter 41

"Out of the depths I have cried to You, Hashem"


Rabbi Yehuda says that when God wanted to create the world He consulted the Torah, who said that if He did create man, man would sin and make Him angry. The Torah warned God that if he reacted to man's sinful actions the world would not survive. Therefore God did not create the world until He created repentance, and repentance is always available for mankind so people can be cleansed from their sins.