Yunus bin Jubayr Abu Ghallab (may Allah have mercy on him) narrates: I asked Sayyiduna Ibn Umar (may Allah be pleased with them both) about a man who divorced his wife while she was menstruating. He said: "Do you know Abdullah bin Umar? He divorced his wife while she was menstruating, so Sayyiduna Umar (may Allah be pleased with him) asked the Prophet (peace and blessings be upon him) about it, and he (peace and blessings be upon him) ordered him to take her back." I said: "Will that divorce be counted?" He said: "Yes. Tell me, if someone is incapable (of taking her back) or acts foolishly (would the divorce then not be counted?)"
Imam al-Tabarani (may Allah have mercy on him) said: "Only Hammad narrated this hadith from Salamah."