It is narrated from Alqamah bin Qays (may Allah have mercy on him) that he divorced his wife once or twice; then she menstruated once or twice, then her menstruation stopped for seventeen or eighteen months, then she died. He came to Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) and asked him, and he said: Allah has kept her inheritance held for you. And he made him her heir.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العدد / 15411