The Prophet ﷺ said, "Whoever swears falsely in order to grab the property of a Muslim (or of his brother), Allah will be angry with him when he meets Him." Allah then revealed in confirmation of the above statement:--'Verily those who purchase a small gain at the cost of Allah's Covenant and their own oaths.' (3.77) Al-Ash'ath said, "This Verse was revealed regarding me and a companion of mine when we had a dispute about a well."
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ حَلَفَ عَلَى يَمِينٍ كَاذِبَةٍ لِيَقْتَطِعَ بِهَا مَالَ رَجُلٍ مُسْلِمٍ أَوْ قَالَ أَخِيهِ لَقِيَ اللَّهَ وَهْوَ عَلَيْهِ غَضْبَانُ فَأَنْزَلَ اللَّهُ تَصْدِيقَهُ {إِنَّ الَّذِينَ يَشْتَرُونَ بِعَهْدِ اللَّهِ} قَالَ سُلَيْمَانُ فِي حَدِيثِهِ فَمَرَّ الأَشْعَثُ بْنُ قَيْسٍ فَقَالَ مَا يُحَدِّثُكُمْ عَبْدُ اللَّهِ قَالُوا لَهُ فَقَالَ الأَشْعَثُ نَزَلَتْ فِيَّ وَفِي صَاحِبٍ لِي فِي بِئْرٍ كَانَتْ بَيْنَنَا