We conquered Mecca and then we went on an expedition to Hunain. The polytheists came, forming themselves into the best rows that I have seen. They first formed the rows of cavalry, then those of infantry, and then those of women behind them. Then there were formed the rows of sheep and goats and then of other animals. We were also people large in number, and our (number) had reached six thousand. And on one side Khalid b. Walid was in charge of the cavalry. And our horses at once turned back from our rear. And we could hardly hold our own when our horses were exposed, and the bedouins and the people whom we knew took to their heels. (Seeing this) the Messenger of Allah (ﷺ) called thus: O emigrants, O emigrants. He then. said: O Ansar, O Ansar. (Anas said: This hadith is transmitted by a group of eminent persons.) We said: At thy beck and call are we, Messenger of Allah. The Messenger of Allah (ﷺ) then advanced and he (Anas) said: By Allah, we had not yet reached them when Allah defeated them. and we took possession of the wealth and we then marched towards Ta'if, and we besieged them for forty nights. and then came back to Mecca and encamped (at a place), and the Messenger of Allah (ﷺ) began to bestow a hundred camels upon each individual. The rest of the hadith is the same.
Sahih Muslim Book 12, Hadith 179
Yahya related to me from Malik that he had asked Ibn Shihab about
a man who had a slave-girl as a wife, and then he bought her, and
divorced her once. He said, "She is halal for him by the possession of
the right hand as long as he does not make his divorce irrevocable. If
he irrevocably divorces her, she is not halal for him by the
possession of the right hand until she has married another husband."
Malik said that if a man rnarried a female slave and then she
had a child by him, and then he bought her, she was not an umm walad
for him because of the child born to him while she belonged to
another, until she had had a child by him while she was in his
possession after he had purchased her.
Malik said, "If he
buys her and she is pregnant by him and she then gives birth while she
belongs to him, she is his umm walad by that pregnancy, according to
what we think, and Allah knows best."
Muwatta Malik Book 28, Hadith 34