Al-Hasan said that Sayyiduna Ali (may Allah be pleased with him) said: One who accepts Islam at the time of an inheritance is entitled to it.