It is narrated on the authority of Abdullah that he heard the Prophet (ﷺ) saying:
He who took an oath in order to entitle himself (to the possession) of a property, whereas he is a liar, would meet Allah in a state that He would be very much angry with him. Then the remaining part of the hadith was narrated as transmitted by A'mash but with the exception of these words: There was a dispute between me and another person in regard to a well. We referred this dispute to the Messenger of Allah (ﷺ). Upon this he remarked: Either (you should produce) two witnesses (to support your contention) or his oath (would be accepted as valid).
Reference: Sahih Muslim 138 b In-book : Book 1, Hadith 263 USC-MSA web (English) : Book 1, Hadith 255 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.