In wp-admin, navigate to Tools > Better Search Replace. In the two first fields you will see what URL to search for and which URL you want to replace it with. So enter your current domain URL in the first field and the domain URL you want to replace it with in the second.