Abu al-Kanud narrates from Sayyiduna Ibn Mas'ud (may Allah be pleased with him) that he said: "The example of one who frees his concubine and then marries her is like that of one who dedicates his sacrificial camel and then rides it."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9646