Ali to a man who divorced his wife a thousand times: 'Divide the rest among your wives'
Women Basic Musannaf Ibn Abi Shayba 18751"A man came to 'Ali and said: I have divorced my wife a thousand times. He said: She is separated from you by three; divide the rest among your wives."
What the hadith says
These are 'Ali b. Abi Talib's words, not the Prophet's. Ibn Abi Shayba records them (18751) in the chapter 'A man divorces his wife a hundred or a thousand times in one statement', through Waki', al-A'mash and Habib. The al-Hut edition has the same report (17802); two manuscripts read the pronoun as plural, without changing the sense. The editor, Sa'd al-Shathri, grades it munqati' (broken): Habib did not hear from 'Ali.
Why this is a problem
The second half is almost certainly sarcasm, and this entry does not read it as a ruling that the extra divorces fall on the man's other wives. The substance lies in the first half, stated straight: a single sentence, spoken in one breath, ends the marriage irrevocably. 'She is separated from you by three.' Whatever the man meant, and whatever the wife wanted, the words did it.
The joke itself is aimed past the man at the women. His other wives, and the assumption that he has several, become the punchline.
The Muslim response
No Muslim answer to this specific report was found on a linkable page. The standard answer is that the chain is broken, and that 'Ali was mocking the man for his abuse of divorce: the law limits a husband to three, and anything beyond that is meaningless. The report teaches restraint, not contempt for women.
Why it fails
The broken chain is conceded and the entry is rated Basic. Reading the second half as mockery of the man is fair. But the defence leaves the first half untouched: in this report a husband's one-breath declaration ends his marriage with a finality the wife has no say in.
The joke shows how the matter was regarded. A man has abused the power of divorce so thoroughly that a Companion responds with a quip about sharing the surplus among his wives. The women appear only as the objects on which divorces are spent.