A hadith like this has been transmitted on the authority of Ayyub with a slight variation…

Sahih Muslim Book 18 Hadith 11

Sahih Muslim #1471 k

The Book of Divorce 18:11

A hadith like this has been transmitted on the authority of Ayyub with a slight variation of words.

Chapter: The prohibition of divorcing a menstruating woman without her consent; If a man breaks this rule, it still counts as a divorce, and he should be ordered to take her back

Grade: Sahih