Ezekiel 37:26
26
Moreover I will make a covenant of peace with them; it shall be an everlasting covenant with them: and I will place them, and multiply them, and will set my sanctuary in the midst of them for evermore.
God meant it for goodness
In Genesis 50:20, this signifies to turn their temptations into good, for what God intends, He performs. (Arcana Coelestia 6572)