Abu Hurairah reported,

The Messenger of Allah ﷺ said, "There are three whom Allah will not look at on the Day of Resurrection, nor will He purify them, and theirs will be a painful punishment.A man who had surplus water by the roadside but withheld it from a traveler.A man who pledged allegiance to a leader only for worldly gain, so that if the leader gave him something he was pleased, and if he gave him nothing he was angry.And a man who displayed his merchandise for sale after the afternoon prayer and swore, 'By Allah, beside whom there is no god, I was offered such and such for it,' and another man believed him."Then he recited this verse, "Indeed, those who exchange the covenant of Allah and their oaths for a small price" [Aal Imran 3:77].

Bukhari 2358

Sahih

حدثنا موسى بن إسماعيل حدثنا عبد الواحد بن زياد عن الأعمش قال سمعت أبا صالح يقول سمعت

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

قال رسول الله ﷺ ثلاثة لا ينظر الله إليهم يوم القيامة ولا يزكيهم ولهم عذاب أليم رجل كان له فضل ماء بالطريق فمنعه من ابن السبيل ورجل بايع إماما لا يبايعه إلا لدنيا فإن أعطاه منها رضي وإن لم يعطه منها سخط ورجل أقام سلعته بعد العصر فقال والله الذي لا إله غيره لقد أعطيت بها كذا وكذا فصدقه رجل ثم قرأ هذه الآية {إن الذين يشترون بعهد الله وأيمانهم ثمنا قليلا}

البخاري 2358صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Sharecropping of orchards
Chapter
Ruling on one who prevents a wayfarer from water
Numbering
Darussalam 2358
Bukhari 2358