The Messenger of Allah ﷺ said, "There are three whom Allah will not speak to on the Day of Resurrection, nor will He look at them, nor will He purify them, and they will have a painful punishment. A man who has surplus water in the desert and withholds it from a traveler. A man who sells goods to another after the afternoon prayer and swears by Allah that he paid such-and-such a price for them, so the buyer believes him, though it is not so. And a man who pledges allegiance to a ruler only for worldly gain, so if the ruler grants him something from it, he honors the pledge, but if he gives him nothing, he does not."
حدثنا أبو بكر بن أبي شيبة وعلي بن محمد وأحمد بن سنان قالوا حدثنا أبو معاوية عن الأعمش عن أبي صالح
قال رسول الله ﷺ ثلاثة لا يكلمهم الله عز وجل يوم القيامة ولا ينظر إليهم ولا يزكيهم ولهم عذاب أليم رجل على فضل ماء بالفلاة يمنعه ابن السبيل ورجل بايع رجلا سلعة بعد العصر فحلف بالله لأخذها بكذا وكذا فصدقه وهو على غير ذلك ورجل بايع إماما لا يبايعه إلا لدنيا فإن أعطاه منها وفى له وإن لم يعطه منها لم يف له
Muslim narrated it, in the Book of Faith, Chapter on the severity of the prohibition of trailing the lower garment, boasting about a gift, and promoting merchandise through false oaths, etc., Hadith 108, from Abu Bakr bin Abu Shayba and others, with this wording. "Merchandise through false oaths."