Isaiah 52:9-12 describes the Lord redeeming Israel and commanding Israelites to leave Babylon.
Isaiah 52, Old Testament, The Church of Jesus Christ of Latter Day Saints, accessed August 22, 2023
9 ¶ Break forth into joy, sing together, ye waste places of Jerusalem: for the Lord hath comforted his people, he hath redeemed Jerusalem.
10 The Lord hath made bare his holy arm in the eyes of all the nations; and all the ends of the earth shall see the salvation of our God.
11 ¶ Depart ye, depart ye, go ye out from thence, touch no unclean thing; go ye out of the midst of her; be ye clean, that bear the vessels of the Lord.
12 For ye shall not go out with haste, nor go by flight: for the Lord will go before you; and the God of Israel will be your rearward.