Here was exhibited the long-suffering mercy of God. Even at that late hour, if there were submission to His requirements, the lives of the people would be spared and the city saved from conflagration. But the king thought he had gone too far to retract. He was afraid of the Jews, afraid of becoming a subject of ridicule, afraid for his life. It was too humiliating, at that late day, to say to the people: “I accept the word of the Lord as spoken through His prophet Jeremiah. I dare not venture to war against the enemy in the face of all these warnings.” 4T 183.1 With tears Jeremiah entreated the king to save himself and his people. With anguish of spirit he assured him that he could not escape with his life, and that all his possessions would fall to the king of Babylon. He could save the city if he would. But he had started upon the wrong track and would not retrace his steps. He decided to follow the counsel of false prophets and of men whom he really despised and who ridiculed his we…
"O Jerusalem, Jerusalem, thou that killest the prophets, and stonest them which are sent unto thee, how often would I have gathered thy children together, even as a hen gathereth her chickens under her wings, and ye would not!"
Both passages deal with rejecting prophetic warnings and the consequences thereof. The EGW passage specifically references Jeremiah's warnings to the king, while Matthew 23:37 speaks of Jerusalem's rejection of prophets in general. The EGW passage amplifies the theme of rejecting prophetic warnings, making the connection genuine.