Sunan an-Nasa'i, Book 27, Hadith 39 (Nasa'i 3433)

It was narrated from 'Umar bin Mu'attib that Abu Hasan, the freed slave of Banu Nawfal, said:

"My wife and I were slaves, and I divorced her twice, then we were both set free. I asked Ibn 'Abbas and he said: 'If you take her back, you have two divorces left. This is how the Messenger of Allah ruled.'"