Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) narrates that the Prophet (peace and blessings be upon him) was asked about a man who divorces his wife three times, then another man marries her, closes the door and lets down the curtain, then divorces her before consummating the marriage: is she lawful for the first husband? He (peace and blessings be upon him) said: "No, not until he (the second husband) tastes her sweetness."
Imam al-Nasa'i (may Allah have mercy on him) narrated it through Mahmud bin Ghaylan from Waki'.
Related hadith on this topic