You can only buy units from him (in theory because you are setting them free) when you reach Renaissance and not sell them because you have reached an enlightened age.
Someone can verify if the ability to sell ends when you hit Renaissance and not before if I am incorrect on the exact timing.