It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that, according to the verse "Indeed, those who believed and emigrated" and "those who believed but did not emigrate," the Bedouin (non-emigrant) would not inherit from the emigrant, nor would the emigrant inherit from him. Then this ruling was abrogated by these words of Allah Almighty: "And those of blood relationship are more entitled to one another."
Related hadith on this topic