Imam al-Shafi'i (may Allah have mercy on him) said: "The view of many of the people of fatwa is that she (the divorced wife of a sick man) will inherit from him during the iddah; the view of some of our companions is that she will inherit from him even if the iddah has passed; some of them said: even if she has married another husband; others besides them said: she will inherit from him as long as she refrains from (marrying other) husbands; and in the view of some, the irrevocably divorced woman will not inherit. This is among the matters in which Allah Almighty's guidance (istikharah) has been sought."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الخلع والطلاق / Q15124