וַיִּנָּ֖חֶם יְהוָ֑ה עַל־הָ֣רָעָ֔ה אֲשֶׁ֥ר דִּבֶּ֖ר לַעֲשׂ֥וֹת לְעַמּֽוֹ׃ (פ)
האָט גאָט חרטה געהאַט אױף דעם בײז װאָס ער האָט געזאָגט צו טאָן צו זײַן פֿאָלק.
Rashi
ויתעצב GRIEVED HIM — means, in the mind of God man became an object to be troubled (punished): it entered God’s heart to grieve him. This is how the Targum of Onkelos understands the verse. Another explanation of verse 6: וינחם AND [THE LORD] REPENTED — The thoughts of God turned from Divine mercy to Divine justice: He considered what to do with man whom He had made on the earth. Wherever this term is used in the Scripture it means “considering what to do”. Examples are: (Numbers 23:19) “nor the son of man that He should consider (ויתנחם)”; (Deuteronomy 32:36) “and reconsider (ויתנחם) regarding His servants”; (Exodus 32:14) “and the Lord reconsidered (וינחם) regarding the evil”; (1 Samuel 15:11) “I am reconsidering (נחמתי) that I have set up Saul to be king” — all these passages denote a change of mind.
Rashi
ראו כי רעה נגד פניכם Understand this as the Targum takes it: See, the evil you are about to do wilt turn against yourself. I have heard a Midrashic explanation: There is a certain star the name of which is רעה “Evil”. Pharaoh said to them, “By my astrological art I see that star rising towards you in the wilderness whither you wish to proceed. It is an emblem of blood and slaughter”. Consequently, when Israel sinned by worshipping the calf and the Holy One, blessed be He, intended to slay them, Moses said in his prayer, (Exodus 32:12) “Wherefore should the Egyptians speak and say, He brought them forth together with רעה (i. e. under the influence of the star רעה); this is, indeed, what he (Pharaoh) has already said, “See, the ‘רעה’ is before you”. At once, “the Lord bethought Himself concerning ‘רעה’”, and He changed the blood of which this star was an emblem to the blood of the circumcision because indeed Joshua had them circumcised. This is the meaning of what is said, (Joshua 5:9). “This day have I rolled from off you the reproach of the Egyptians”, for they said to you. “We see blood impending over you in the wilderness. (Yalkut Shimoni on Torah 1:392; cf. also Rashi on Joshua 5:9.)
Rav Hirsch
גם כפעם ההיא: auch dieses dritte Mal. Die erste Erhörung war: וינחם ד׳ על ׳הרעה וגו (Schmot 32, 14), die zweite: ׳ועתה לך נחה את העם וגו (daselbst 34, die dritte: ׳הנה אנכי כרת ברית וגו (daselbst 34, 10).