Another interpretation of (Numbers 8:2): "When you set up the lamps." Israel said (in Psalms 43:3): "Send out Your light and Your truth; they will lead me." Great is the light of the Holy One, blessed be He. The sun and the moon give light to the world, but from where do they shine? They snatch from the sparks of the light of above, as it is said (in Habakkuk 3:11): "At the light of Your arrows they go, at the brightness of Your flashing spear." Great is the light of above, for only one part in a hundred has been given to all the creatures, as it is said (in Daniel 2:22): "He knows what is in the darkness, etc." Therefore I made sun and moon to give light before you, as it is said (in Genesis 1:17): "And God set them in the firmament of the heavens to give light upon the earth."
Why the Sun and Moon Snatch Sparks of Celestial Light
Midrash Tanchuma Buber, Beha'alotcha 10:1
ד"א בהעלתך את הנרות. אמרו ישראל שלח אורך ואמתך המה ינחוני (תהלים מג ג), גדול אורו של הקב"ה, החמה והלבנה מאירים לעולם, ומהיכן הן מאירין, מן זקוקי אור של מעלה הן חוטפים, שנאמר לאור חציך יהלכו לנוגה ברק חניתך (חבקוק ג יא), גדול אור של מעלה, שלא ניתן לכל הבריות אלא אחד ממאה, שנאמר ידע מה בחשוכא וגו' (דניאל ב כב), לפיכך עשיתי המה ולבנה שיאירו לפניך, שנאמר ויתן אותם אלהים ברקיע השמים להאיר על הארץ (בראשית א יז).