Some or actually most of the Khulafa'a in the Omayyad and Abassi periods
used to drink and to have sex with prostitutes despite the fact that its prohibited in Islam so that hardly proves anything.
And just to make it clear, prophet Mohammad (ص

had a slave before Islam and then he freed him.