Bulugh al-Maram 1429
Narrated Abu Hurairah (RA):
Allah's Messenger (ﷺ) said: "There are three to whom Allah will not speak to on the Day of Resurrection, not will He look at them, nor will He purify them, and they will have a painful punishment. (1) A man at a place with excess water in the desert and who withholds it from the travelers. (2) A man who sold a commodity to another person in the afternoon (or after the 'Asr prayer) and swore to him by Allah that he had bought it at such and such price and he (the buyer) believed him yet that was not the case. (3) And a man who pledged allegiance to an Imam only for the sake of the world (material gains). Hence, if the Imam bestowed on him something out of that (i.e. worldly riches) he stood by his pledge of allegiance, and if he did not give him, he did not fulfill the pledge of allegiance."

[Agreed upon].
وَعَنْ أَبِي هُرَيْرَةَ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ 
"ثَلَاثَةٌ لَا يُكَلِّمُهُمْ اَللَّهُ يَوْمَ اَلْقِيَامَةِ, وَلَا يَنْظُرُ إِلَيْهِمْ, وَلَا يُزَكِّيهِمْ, وَلَهُمْ عَذَابٌ أَلِيمٌ: رَجُلٌ عَلَى فَضْلِ مَاءٍ بِالْفَلَاةِ, يَمْنَعُهُ مِنْ اِبْنِ اَلسَّبِيلِ; وَرَجُلٌ بَايَعَ رَجُلاً بِسِلْعَةٍ بَعْدَ اَلْعَصْرِ, فَحَلَفَ لَهُ بِاَللَّهِ: لَأَخَذَهَا بِكَذَا وَكَذَا, فَصَدَّقَهُ, وَهُوَ عَلَى غَيْرِ ذَلِكَ; وَرَجُلٌ بَايَعَ إِمَامًا لَا يُبَايِعُهُ إِلَّا لِلدُّنْيَا, فَإِنْ أَعْطَاهُ مِنْهَا, وَفَى, وَإِنْ لَمْ يُعْطِهِ مِنْهَا, لَمْ يَفِ" }  مُتَّفَقٌ عَلَيْه ِ  1‏ .‏‏1 ‏- صحيح.‏ رواه البخاري ( 7212 )‏، ومسلم ( 108 )‏ والسياق لمسلم.‏