Messenger of Allah ﷺ said, "There are three persons whom Allah will not look at on the Day of Resurrection, nor will he purify them and theirs shall be a severe punishment. They are: -1. A man possessed superfluous water, on a way and he withheld it from travelers. -2. A man who gave a pledge of allegiance to a ruler and he gave it only for worldly benefits. If the ruler gives him something he gets satisfied, and if the ruler withholds something from him, he gets dissatisfied. -3. And man displayed his goods for sale after the ʿAsr prayer and he said, 'By Allah, except Whom None has the right to be worshipped, I have been given so much for my goods,' and somebody believes him (and buys them). The Prophet ﷺ then recited: "Verily! Those who purchase a little gain at the cost of Allah's Covenant and their oaths." (3.77) (Using translation from Bukhārī 2358)
قَالَ رَسُولُ اللهِ ﷺ ثَلَاثَةٌ لَا يَنْظُرُ اللهُ إِلَيْهِمْ يَوْمَ الْقِيَامَةِ وَلَا يُزَكِّيهِمْ وَلَهُمْ عَذَابٌ أَلِيمٌ رَجُلٌ كَانَ لَهُ فَضْلُ مَاءٍ فِي الطَّرِيقِ فَمَنَعَهُ مِنِ ابْنِ السَّبِيلِ وَرَجُلٌ بَايَعَ إِمَامًا لَا يُبَايِعُهُ إِلَّا لِلدُّنْيَا فَإِنْ أَعْطَاهُ مِنْهَا رَضِيَ وَإِنْ لَمْ يُعْطِهِ مِنْهَا سَخِطَ وَرَجُلٌ أَقَامَ سِلْعَةً بَعْدَ الْعَصْرِ فَقَالَ وَاللهِ الَّذِي لَا إِلَهَ إِلَّا هُوَ لَقَدْ أَعْطَيْتُ بِهَا كَذَا وَكَذَا فَصَدَّقَهُ الرَّجُلُ وَاشْتَرَاهَا مِنْهُ ثُمَّ قَرَأَ هَذِهِ الْآيَةَ {إِنَّ الَّذِينَ يَشْتَرُونَ بِعَهْدِ اللهِ وَأَيْمَانِهِمْ ثَمَنًا قَلِيلًا} [آل عمران 77] إِلَى آخِرِ الْآيَةِ