Hadithcore
Mishkat al-Masabih, 2464, 2465

Abu Huraira said that God’s messenger used to say, “O God, I seek refuge in You from the four things:

knowledge which does not profit, a heart which is not submissive, an appetite which is insatiable, and a supplication which is not heard.” Ahmad, Abu Dawud and Ibn Majah transmitted it. Tirmidhi transmitted it from ‘Abdallah b. 'Amr, and Nasa’i from both sources.

عَنْ أَبِي هُرَيْرَةَ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ:

اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْأَرْبَعِ: مِنْ عِلْمٍ لَا يَنْفَعُ وَمِنْ قَلْبٍ لَا يَخْشَعُ وَمِنْ نَفْسٍ لَا تَشْبَعُ وَمِنْ دُعَاءٍ لَا يُسْمَعُ

. رَوَاهُ أحمدُ وَأَبُو دَاوُد وابنُ مَاجَه وَرَوَاهُ التِّرْمِذِيُّ عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو. وَالنَّسَائِيّ عَنْهُمَا

References1 variant
In-Book Reference
Book 9, Hadith 233