Reference for Sanhedrin 205:5
אלא בקש הקב"ה להחזיר את העולם כולו לתוהו ובוהו בשביל יהויקים נסתכל בדורו ונתקררה דעתו
on account of Jehoiakim, but that He gazed at [the rest of] his generation, and His mind was appeased.<span class="x" onmousemove="('comment',' Hence the use of [H] which, being the same word with which the Creation story is introduced — 'in the beginning ([H]) God created' — intimates that He wished to plunge the world into chaos, as it was at the beginning. — Though Jehoiakim was wicked, the rest of his generation was righteous. ');"><sup>8</sup></span> The Holy One, blessed be He, [also] desired to hurl the world back into chaos because of Zedekiah's generation, but that He gazed at Zedekiah [himself] and his mind was appeased. But in the case of Zedekiah too it is written, And he did that which was evil in the sight of God?<span class="x" onmousemove="('comment',' II Kings XXIV, 19. ');"><sup>9</sup></span>