Ayyub, through his chain, mentions something of the same meaning, that Ali (may Allah be pleased with him) said: "You will not leave here until you affirm the same as the woman has affirmed."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب القسم والنشوز / 14783