Spoils, slaves, and prisoners are only to be taken in war between Muslims and infidels. Muslims in the past conquered, invaded, and took over countries. The prisoners and spoils are distributed among the fighters, which includes men, women, children, wealth, and so on.
When a slave market is erected, which is a market in which are sold slaves and sex-slaves, which are called in the Qur’an by the name milk al-yamin, “that which your right hands possess” [Qur’an 4:24]. This is a verse from the Qur’an which is still in force, and has not been abrogated. The milk al-yamin are the sex-slaves. You go to the market, look at the sex-slave, and buy her. She becomes like your wife, (but) she doesn’t need a (marriage) contract or a divorce like a free woman, nor does she need a wali. All scholars agree on this point–there is no disagreement from any of them.