The Prophet ﷺ was asked about a man who divorces his wife three times, after which another man marries her, closes the door, lowers the curtain, and then divorces her before consummating the marriage. He said, "She is not lawful for the first husband until the second one has had intercourse with her."Abu Abdul-Rahman said, "This is closer to what is correct."
أخبرنا محمود بن غيلان قال حدثنا وكيع قال حدثنا سفيان عن علقمة بن مرثد عن رزين بن سليمان الأحمري
سئل النبي ﷺ عن الرجل يطلق امرأته ثلاثا فيتزوجها الرجل فيغلق الباب ويرخي الستر ثم يطلقها قبل أن يدخل بها قال لا تحل للأول حتى يجامعها الآخر قال أبو عبد الرحمن هذا أولى بالصواب
[Sahih]. It is found in Sunan al-Kubra, hadith 5608, and see the previous hadith.