Hasan narrates that Hazrat Ali (may Allah be pleased with him) said: Whoever accepts Islam at the time of inheritance is entitled to it.