The Messenger of Allah ﷺ said, "There are three to whom Allah will not look on the Day of Resurrection, nor will He purify them, and they shall have a painful punishment.A man who has surplus water by the road and withholds it from a traveler.A man who pledges allegiance to a leader only for worldly gain, so if he is given some of it he is pleased, and if he is not given any of it he is angry.And a man who displays his merchandise after the afternoon prayer and says, 'By Allah, besides whom there is no god, I was offered such and such a price for it,' and another man believes him."Then he recited this verse, "Indeed, those who exchange the covenant of Allah and their oaths for a small price" [Al Imran 3:77].
قال رسول الله ﷺ: ثلاثة لا ينظر الله إليهم يوم القيامة، ولا يزكيهم ولهم عذاب أليم: رجل كان له فضل ماء بالطريق فمنعه من ابن السبيل، ورجل بايع إماما لا يبايعه إلا لدنيا، فإن أعطاه منها رضي وإن لم يعطه منها سخط، ورجل أقام سلعته بعد العصر فقال: والله الذي لا إله غيره، لقد أعطيت بها كذا وكذا، فصدقه رجل، ثم قرأ هذه الآية: {إن الذين يشترون بعهد الله وأيمنهم ثمن قليلا} [سورة آل عمران ٧٧].
Bukhari narrated it in the Book of Sharecropping (2358) from Musa bin Ismail, who said, Abdul-Wahid bin Ziyad narrated to us, from Amash, who said, I heard Abu Salih say, I heard Abu Hurairah, and he mentioned it.Muslim narrated it in the Book of Faith (108) through another route from Amash, mentioning it similarly, but he did not mention the verse of Surah Al Imran in his narration.