If #israel endures, it isn't because Israel is worthy. It's because God keeps His promises. Humble yourself, repent from sin, and God will return to you.
God wants His people to prosper because that reflects well on Him, but He isn't going to stop being a righteous God just so we can prosper in our sin.
Malachi 3