عَنْ عُقْبَةَ بْنِ عَامِرٍ رَضِيَ اللَّهُ عَنْهُ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ إِذَا أَنْكَحَ الْوَلِيَّانِ فَهُوَ لِلْأَوَّلِ مِنْهُمَا وَإِذَا بَاعَ مِنْ رَجُلَيْنِ فَهُوْ لِلْأَوَّلِ مِنْهُمَا قَالَ أَبِي وَقَالَ يُونُسُ وَإِذَا بَاعَ الرَّجُلُ بَيْعًا مِنْ رَجُلَيْنِ
It is narrated from Sayyiduna Uqbah bin Amir (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: When a woman is married off by two guardians, the marriage of the first guardian will be considered valid. Similarly, when a man sells an item to two men, it will belong to the first one. The words of the narrator Yunus are: When a man sells to two slaves.