Mazidah narrates from his father that Sayyiduna Ali (may Allah be pleased with him) said: That woman will remain with him on the basis of the divorces that remain to him. Sa'id says: Qatadah adopted this view, concerning a man who gives his wife one or two divorces, then she marries (another), then that man takes her back.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الخلع والطلاق / 15137