We can now truly appreciate the wonders of the Torah. We learned from the Zohar hakadosh that the women light candles in honor of Shabbas to attract the presence of the Shechinah that departed on account of the “cheit Eitz HaDa’as.” This explains the rationale for lighting candles on Friday as Shabbas is about to enter. For, Chazal teach us that on the sixth day of creation, the day on which Adam and Chava were created, toward the end of the day, as Shabbas approached, they sinned by partaking of the Eitz HaDa’as. If not for the Shabbas advocating on their behalf, they would have died immediately on that same day.
Let us refer to the passage in the Midrash Shochar Tov related to "מזמור שיר ליום השבת" (Tehillim Mizmor 92). The first part of the Midrash depicts what transpired on the erev Shabbas of creation, hour by hour—man’s creation, his sin, his judgment, and his banishment. It then describes how the Shabbas came to his defense: It argued before HKB”H, “Master of the Universe, You did not punish man during the six days of creation; yet, on me, You are starting. This is my kedushah and this is my respite.” On account of the Shabbas, he was saved from the sentence of Gehinnom. Upon witnessing the power of Shabbas, Adam proceeded to recite a hymn for Shabbas: "מזמור שיר ליום השבת".