All of them had to do it. That applied to male and female slaves alike. No one was allowed to hold another Jew as a slave.