It is narrated from Ibrahim (may Allah have mercy on him) that if a person gives three divorces to his wife during illness, if the wife is still in her waiting period ('iddah), she will inherit; if the waiting period ends, she will not inherit, and this is what we act upon.
Hadith Referenceسنن سعید بن منصور / كتاب الطلاق / 3144
Hadith Takhrij«أخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 1964، 1965، 1967، وعبد الرزاق فى «مصنفه» برقم: 11106، وابن أبى شيبة فى «مصنفه» برقم: 19378، 19415»