Another interpretation of "This month" (Exodus 12:2): If you are worthy, you count according to its waxing toward fullness: Abraham, Isaac, and Jacob, [Judah], Perez, Hezron, Ram, Amminadab, Nahshon, Salmon, Boaz, then Jesse, David, and Solomon, "and Solomon sat upon the throne of the LORD as king" (1 Chronicles 29:23). But if not, you count according to its defect: Rehoboam, (Abijah). And from Rehoboam they began to grow defective and decline. Solomon made shields of gold, and once Rehoboam arose he made them of bronze, as it is said, "And King Rehoboam made shields of bronze in their place" (1 Kings 14:27). They began to diminish: (Rehoboam,) Abijah, Asa, Jehoshaphat, (Judah) [Jehoram], Ahaziah, Joash, Amaziah, Uzziah, Jotham, Ahaz, Hezekiah, Manasseh, Amon, Josiah, Zedekiah, [and it is written] "and they put out the eyes of Zedekiah" (2 Kings 25:7). Thus the moon was in its defect. The moon set, and they began to walk in darkness. The Assembly of Israel said before the Holy One, blessed be He: Master of the universe, how long will the darkness of the world be upon us, and the light belong to the nations of the world? The Holy One, blessed be He, said: [By your lives, in the world to come I am bringing darkness upon the nations of the world] and the light to you. Isaiah said, "For behold, darkness shall cover the earth, and thick darkness the peoples; but the LORD shall shine upon them, and His glory shall be seen upon you" (Isaiah 60:2).
The Waxing and Waning Moon from Abraham to Zedekiah
Midrash Tanchuma Buber, Bo 15:1
ד"א החדש הזה. אם זכיתם אתם מונין למליאתו, אברהם יצחק ויעקב [יהודה] פרץ חצרון רם עמינדב נחשון שלמון בועז עוד ישי דוד ושלמה, וישב שלמה על כסא ה' למלך (דה"א כט כג), ואם לאו אתם מונין לפגמו, רחבעם (אביה), ומן רחבעם התחילו פוגמין והולכין, שלמה עשה מגיני הזהב, וכיון שעמד רחבעם עשה של נחושת, שנאמר ויעש המלך רחבעם תחתם מגיני נחושת (מ"א יד כז), התחילו לפחות, (רחבעם) אביה אסא יהושפט (יהודה) [יהורם] אחזיהו יואש אמציהו עוזיהו יותם אחז חזקיהו מנשה אמון יאשיהו צדקיהו, [וכתיב] ואת עיני צדקיהו עור (מ"ב כה ז), הוי החדש בפגמו, בא הירא התחילו מהלכים בחשך, אמרה כנסת ישראל לפני הקב"ה רבונו של עולם עד מתי יהיה החשך עולם עלינו, והאור לאומות העולם, אמר הקב"ה [חייכם לעולם הא אני מביא חשכה לאומות העולם] והאורה לכם, אמר ישעיה כי הנה החשך יכסה ארץ וערפל לאומים, ועליהם יזרח ה', וכבודו עליך יראה (ישעיה ס ב).