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).
مَنْ حَلَفَ عَلَى يَمِينٍ يَسْتَحِقُّ بِهَا مَالاً هُوَ فِيهَا فَاجِرٌ لَقِيَ اللَّهَ وَهُوَ عَلَيْهِ غَضْبَانُ ثُمَّ ذَكَرَ نَحْوَ حَدِيثِ الأَعْمَشِ غَيْرَ أَنَّهُ قَالَ كَانَتْ بَيْنِي وَبَيْنَ رَجُلٍ خُصُومَةٌ فِي بِئْرٍ فَاخْتَصَمْنَا إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ شَاهِدَاكَ أَوْ يَمِينُهُ