It was narrated from Ibn 'Umar that he divorced his wife when she was menstruating, but the Messenger of Allah told him to take her back, and divorce her when she was pure (not menstruating).
Hadith Referenceسنن نسائي / كتاب الطلاق / 3427
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:إسناده صحيح