The Messenger of Allah ﷺ said, "Whoever swears an oath in order to seize through it the property of a Muslim man 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 Jewish man, and he denied my right to it. I brought him before the Prophet ﷺ, and the Messenger of Allah ﷺ asked me, 'Do you have evidence?'I said, 'No.'He then said to the Jew, 'Take an oath.'I said, 'Messenger of Allah, then he will swear and my property will be lost.'So Allah
revealed, "Indeed, those who exchange the covenant of Allah and their oaths for a small price..." [Aal Imran 3:77] to the end of the verse."
حدثنا أبو معاوية حدثنا الأعمش عن شقيق
قال رسول الله ﷺ من حلف على يمين ليقتطع بها مال امرئ مسلم لقي الله عز وجل وهو عليه غضبان فقال الأشعث في والله كان ذاك كان بيني وبين رجل من اليهود أرض فجحدني فقدمته إلى النبي ﷺ فقال لي رسول الله ﷺ ألك بينة قلت لا فقال لليهودي احلف فقلت يا رسول الله إذن يحلف فيذهب مالي فأنزل الله عز وجل {إن الذين يشترون بعهد الله وأيمانهم ثمنا قليلا} إلى آخر الآية