Abu Hurairah reported,

The Messenger of Allah ﷺ said, "There are three to whom Allah will not speak on the Day of Resurrection, nor will He look at them, nor will He purify them, and they shall have a painful punishment.A man who possesses surplus water in the desert and withholds it from a traveler.A man who sells goods to another after the afternoon prayer, swearing by Allah that he paid such and such a price for them, and the buyer believes him, though the matter is otherwise.And a man who pledges allegiance to a ruler purely for worldly gain. If the ruler grants him something of it, he keeps his pledge, and if he gives him nothing, he breaks it."

Azami 5827

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: ثلاث لا يكلمهم الله يوم القيامة، ولا ينظر إليهم، ولا يزكيهم، ولهم عذاب أليم: رجل على فضل ماء بالفلاة يمنعه من ابن السبيل، ورجل بايع رجلا بسلعة بعد العصر فحلف له بالله لأخذها بكذا وكذا فصدقه وهو على غير ذلك، ورجل بايع إماما لا يبايعه إلا لدنيا، فإن أعطاه منها وفى، وإن لم يعطه منها لم يف.

الأعظمي 5827صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sales
Chapter
Prohibited sales
Section
Ruling on one who prevents a wayfarer from water
Numbering
Jami al-Kamil 5827 (2nd edition)
Azami 5827