The Messenger of Allah said: "Whichever woman is given in marriage by two Wali, then her case is in accordance with the first of them, and whoever sells something to two men, then it is for the first of them."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ أَيُّمَا امْرَأَةٍ زَوَّجَهَا وَلِيَّانِ فَهِيَ لِلأَوَّلِ مِنْهُمَا وَمَنْ بَاعَ بَيْعًا مِنْ رَجُلَيْنِ فَهُوَ لِلأَوَّلِ مِنْهُمَا