A hadith like this has been transmitted on the authority of Ayyub with a slight variation of words.
Sahih Muslim Book 18, Hadith 11
← Previous Hadith
One who was blameless (as a narrator) narrated to me for twenty years that Ibn 'Umar (Allah be pleased with him) pronounced three divorces to his wife while she was in the state of menses. He was commanded to take her back. I neither blamed them (the narrators) nor recognised the hadith (to be perfectly genuine) until I met Abu Ghallab Yunus b. Jubair al-Bahili and he was very authentic, and he narrated to me that he had asked Ibn 'Umar (Allah be pleased with there) and he narrated it to him that he made one pronouncement of divorce to his wife as she was in the state of menses, but he was commanded to take her back. I said: Was it counted (as one pronouncement)? He said: Why not, was I helpless or foolish?
Sahih Muslim Book 18, Hadith 10 Next Hadith → Umar (Allah be pleased with him) asked Allah's Apostle (ﷺ) about it and he commanded him that he should take her back until she is divorced in the state of purity without having a sexual intercourse with her, and said: Divorce her in the beginning of her 'Idda or her 'Idda commences.
Sahih Muslim Book 18, Hadith 12
Sahih Muslim Book 18, Hadith 10 Next Hadith → Umar (Allah be pleased with him) asked Allah's Apostle (ﷺ) about it and he commanded him that he should take her back until she is divorced in the state of purity without having a sexual intercourse with her, and said: Divorce her in the beginning of her 'Idda or her 'Idda commences.
Sahih Muslim Book 18, Hadith 12