The Messenger of Allah ﷺ said, "Whoever swears a false oath to wrongfully take the property of a Muslim will meet Allah while He is angry with him."Ashath said, "By Allah, this was about me. There was a piece of land between me and a man from the Jews, and he denied my right to it. I brought him before the Prophet ﷺ.The Prophet ﷺ asked me, 'Do you have evidence?'I replied, 'No.'He said to the Jew, 'Then take an oath.'I said, 'Messenger of Allah, then he will swear and take my property.'So Allah the Exalted revealed, "Indeed, those who exchange the covenant of Allah and their oaths for a small price" [Al Imran 3:77], to the end of the verse.
حدثنا محمد بن عيسى وهناد بن السري المعنى قالا حدثنا أبو معاوية حدثنا الأعمش عن شقيق
قال رسول الله ﷺ من حلف على يمين هو فيها فاجر ليقتطع بها مال امرئ مسلم لقي الله وهو عليه غضبان فقال الأشعث في والله كان ذلك كان بيني وبين رجل من اليهود أرض فجحدني فقدمته إلى النبي ﷺ فقال لي النبي ﷺ ألك بينة قلت لا قال لليهودي احلف قلت يا رسول الله إذا يحلف ويذهب بمالي فأنزل الله تعالى {إن الذين يشترون بعهد الله وأيمانهم ثمنا قليلا} إلى آخر الآية
Bukhari narrated it in the Book of Disputes, chapter "The speech of disputants against one another," no. 2416, 2417, and Muslim narrated it in the Book of Faith, chapter "The threat of hellfire against one who seizes the right of a Muslim through a false oath," no. 138, from the hadith of Abu Muawiya.