They were with the Prophet ﷺ on a military expedition. He said, "Among us were two slaves, and no share of the spoils was allotted to them."
حدثنا عبد الرزاق قال أنبأنا سفيان عن ابن أبي ليلى عن رجل
أنهم كانوا مع النبي ﷺ في غزوة قال وفينا مملوكين فلا يقسم لهم
Its chain of transmission is daif, due to the anonymity of the narrator who reported from Fadala. As for the hadith that the Prophet ﷺ granted permission for hunting garb and women's garb, it is sahih, and it has been mentioned many times before.