I asked Ibn Umar about his wife whom he had divorced.He said, "I divorced her while she was menstruating, and the matter was mentioned to Umar, who in turn mentioned it to the Prophet ﷺ. The Prophet ﷺ said, 'Tell him to take her back, then when she becomes pure, he may divorce her during her state of purity.' So I took her back, then divorced her during her state of purity."I asked, "Did you count that pronouncement of divorce, the one you made while she was menstruating?"He replied, "Why would I not count it? Even if I had been incapable or acted foolishly."
سألت ابن عمر عن امرأته التي طلق. فقال: طلقتها وهي حائض، فذكر ذلك لعمر، فذكره للنبي ﷺ فقال: مره فليراجعها، فإذا طهرت فليطلقها لطهرها قال: فراجعتها ثم طلقتها لطهرها. قلت فاعتددت بتلك التطليقة التي طلقت وهي حائض؟ قال: ما لي لا أعتد بها؟ وإن كنت عجزت واستحمقت.
Bukhari narrated it in the Book of Divorce (5252), and Muslim narrated it in the Book of Divorce (1471-12), both through Shuba, from Anas bin Sirin, who related it. The wording given is Muslim's. As for Bukhari, he confined himself to the wording, "Let him take her back." I said, "Would it count as a divorce?" He said, "What else?"And from Qatada, from Yunus bin Jubayr, from Ibn Umar, who said, "Tell him to take her back." I said, "Would it count as a divorce?" He said, "What do you think, if he were incapable and acted foolishly?"