Abu Hasan, a client of Banu Nawfal asked Ibn Abbas: A slave had a wife who was a slave-girl. He divorced her by two pronouncements. Afterwards both of them were freed. Is it permissible for him to ask her in marriage again? He said: Yes. This is a decision given by the Messenger of Allah ﷺ. (Using translation from Abū Dāʾūd 2187)
نَعَمْ قَضَى بِذَلِكَ رَسُولُ اللهِ ﷺ