Rodney Stark said this quote

Slavery ended in medieval Europe only because the church extended its sacraments to all slaves and then managed to impose a ban on the enslavement of Christians (and of Jews). Within the context of medieval Europe, that prohibition was effectively a rule of universal abolition.