There is no practical, short term way of making conditions in countries completely stable - war, flood, famine, sea level rise and other climate change will potentially cause migration as well as poor financial outlook for a population. Stop all those and you'd stop migration. But...
There are...