It is narrated from Hakam that Sayyiduna Ali (may Allah be pleased with him) decided to distribute the inheritance of an apostate among his Muslim heirs.
Brief Explanation
(Commentary on Ahadith 3095 to 3109)
A murtad (apostate) himself will not be the heir of any Muslim deceased, but if he dies, then his heirs will be his Muslim relatives, and this ruling is different from that of a Muslim and a disbeliever.
And Allah knows best.