In Islam was it allowed by the Prophet to sell umm walad’s – female slaves who got children with their masters?

Umm Walad who’s master is free cannot be sold. Islam banned selling such female slaves. And her child is also considered free, not a slave