The Messenger of Allah ﷺ said, "There are three whom Allah will not speak to on the Day of Resurrection, the elderly fornicator, the poor man who is arrogant, and the lying ruler."
أخبرنا محمد بن المثنى قال حدثنا يحيى عن ابن عجلان قال سمعت أبي يحدث
قال رسول الله ﷺ ثلاثة لا يكلمهم الله عز وجل يوم القيامة الشيخ الزاني والعائل المزهو والإمام الكذاب
[Its isnad is hasan] Ahmad narrated it: 2/433, from Yahya Qattan, with the same wording, and it is in al-Kubra, no. 2356, and Ibn Hibban graded it sahih, no. 54.