[(Exodus 12:29:) "And it came to pass at midnight."] This is what Scripture says (Isaiah 44:26): "Who confirms the word of His servant." Rabbi Berekhyah said in the name of Rabbi Levi: What is the meaning of "Who confirms the word of His servant"? Do we not already know that He says to Jerusalem, "You shall be inhabited," and to the cities of Judah, "They shall be rebuilt" (ibid.)? Rather, one angel revealed himself to Jacob our father. He said to him: "What is your name?" He said to him: "Jacob." "Your name shall no longer be said to be Jacob, [but Israel]" (Genesis 32:28). "And He fulfills the counsel of His messengers" (Isaiah, ibid.): the Holy One, blessed be He, revealed Himself to Jacob in order to uphold the decree of that one of His messengers, and "God said to him: Your name is Jacob; [your name shall no longer be called Jacob, but Israel shall be your name]" (Genesis 35:10). Jerusalem, about which all the prophets prophesy — how much more so!
Why God Renamed Jacob to Confirm an Angel's Word
Midrash Tanchuma Buber, Bo 17:1
[ויהי בחצי הלילה]. זש"ה מקים דבר עבדו וגו' (ישעיה מד כו). ר' ברכיה בשם ר' לוי אמר מהו מקים דבר עבדו, אין אנו יודעין שאומר לירושלים תושב ולערי יהודה תבנינה (שם), אלא מלאך אחד מגלה על יעקב אבינו, א"ל מה שמך א"ל יעקב, לא יעקב יאמר עוד שמך וגו' (בראשית לב כח). ועצת מלאכיו ישלים (ישעיה שם), נגלה הקב"ה על יעקב לקיים גזירתו של אותו מלאכיו ויאמר לו אלהים שמך יעקב (בראשית לה י), ירושלים שכל הנביאים מתנבאים עליה על אחת כמה וכמה.