The Messenger of Allah ﷺ said, "There are three whom Allah will not speak to, nor look at, nor purify, and for them is a painful punishment. A man who has surplus water on a road and withholds it from a traveler. A man who pledges allegiance to another solely for worldly gain, so that if he is given what he wants he honors the pledge, and if not, he does not. And a man who haggles with another over goods after the afternoon prayer and swears by Allah that he was offered such and such for it, and the buyer takes it on that basis."
قال رسول الله ﷺ: ثلاثة لا يكلمهم الله، ولا ينظر إليهم، ولا يزكيهم ولهم عذاب أليم: رجل على فضل ماء بطريق يمنع منه ابن السبيل، ورجل بايع رجلا لا يبايعه إلا للدنيا، فإن أعطاه ما يريد وفى له، وإلا لم يف له، ورجل ساوم رجلا بسلعة بعد العصر، فحلف بالله لقد أعطى به كذا كذا فأخذها.
Bukhari narrated it in the Book of Testimonies (2672), and Muslim in the Book of Faith (108:183), both from the hadith of Amash, from Abu Salih, from Abu Hurairah, who mentioned it.