Jeremiah 35:15

35:15 I sent all my servants the prophets to warn you over and over again. They said, “Every one of you, stop doing the evil things you have been doing and do what is right. Do not pay allegiance to other gods and worship them. Then you can continue to live in this land that I gave to you and your ancestors.” But you did not pay any attention or listen to me.

Jeremiah 40:4

40:4 But now, Jeremiah, today I will set you free from the chains on your wrists. If you would like to come to Babylon with me, come along and I will take care of you. But if you prefer not to come to Babylon with me, you are not required to do so. You are free to go anywhere in the land you want to go. Go wherever you choose.”