I was present when the Messenger of Allah ﷺ was brought a case like this. He ordered the seller to take an oath, and then the buyer was given the choice. If he wished, he could take the item, and if he wished, he could leave it.
أخبرني إبراهيم بن الحسن ويوسف بن سعيد وعبد الرحمن بن خالد واللفظ لإبراهيم قالوا حدثنا حجاج قال قال ابن جريج أخبرني إسمعيل بن أمية عن عبد الملك بن عبيد قال حضرنا أبا عبيدة بن عبد الله بن مسعود أتاه رجلان تبايعا سلعة فقال أحدهما أخذتها بكذا وبكذا وقال هذا بعتها بكذا وكذا فقال أبو عبيدة أتي
حضرت رسول الله ﷺ أتي بمثل هذا فأمر البائع أن يستحلف ثم يختار المبتاع فإن شاء أخذ وإن شاء ترك
[Hasan] It is also in Kubra, hadith no. 6245, and the hadith has very many corroborating narrations.