Hammad narrated from Al-Halabi, from Abu Abdullah عليه السلام, who was asked about a man who is on his deathbed and divorces his wife - whether his divorce is valid. Imam عليه السلام said: "Yes, it is valid, and she will inherit from him. However, if she dies, he does not inherit from her."