Only the righteous shall inherit the earth

God has promised his people that they will inherit all things, but he specifically mentions that only the righteous will inherit the earth, so what will become of those who do not know about Jesus?
God has promised his people that they will inherit all things, but he specifically mentions that only the righteous will inherit the earth, so what will become of those who do not know about Jesus?