Al-Ilmam bi-Ahadith al-Ahkam 1009
وَعَن عَمْرو بن شُعَيْب، عَن أَبِيه، عَن جده قَالَ قَالَ رَسُول الله ﷺ : " أَيّمَا امْرَأَة نكحت عَلَى صدَاق، أَو حباء، أَو عدَّة، قبل عصمَة النِّكَاح فَهُوَ لَهَا، وَمَا كَانَ بعد عصمَة النِّكَاح فَهُوَ لمن أعْطِيه، وأحق مَا أكْرم عَلَيْهِ الرجل ابْنَته أَو أُخْته ". لفظ رِوَايَة أبي دَاوُد.
And from ʿAmr ibn Shuʿayb, from his father, from his grandfather, who said: The Messenger of Allah ﷺ said: "Any woman who is married on a dowry, a gift or a promise before the contract of marriage, it is hers; and whatever is after the contract of marriage belongs to the one to whom it is given. And the most deserving thing for which a man is honoured is his daughter or his sister." The wording of Abu Dawud's narration.