Rabbi Yannai taught that from the very beginning of the world's creation, God foresaw the deeds of the righteous and the wicked, and provided Yom Kippur in response. Rabbi Yannai taught that "And the earth was desolate," alludes to the deeds of the wicked; "And God said: 'Let there be light,'" to those of the righteous; "And God saw the light, that it was good," to the deeds of the righteous; "And God made a division between the light and the darkness": between the deeds of the righteous and those of the wicked; "And God called the light day," alludes to the deeds of the righteous; "And the darkness called He night," to those of the wicked; "and there was evening," to the deeds of the wicked; "and there was morning," to those of the righteous. And "one day," teaches that God gave the righteous one day — Yom Kippur.