Praise be to Allah.
The ‘iddah of a woman whose husband dies is considered to start from the moment of death, and depends on the woman’s situation. If she is pregnant, her ‘iddah lasts until she gives birth. If she is not pregnant and she is free, her ‘iddah lasts for four months and ten days. If she is a slave her ‘iddah lasts for two months and five days. If she did not learn of her husband’s death until six months later, then her ‘iddah ended before she came to know.