It is narrated from Ibn al-Musayyib (may Allah have mercy on him) that Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) said: When a man divorces his wife, he is more entitled to her until she takes the bath from her third menstruation, in the case of one or two divorces.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العدد / 15395