Sunan Ibn Majah, Book 1, Hadith 258 (In-Book) ⓘ
It was narrated that Abu Hurairah said: "One of the supplications that the Prophet used to say was: 'Allahumma, inni a'udhu bika min 'ilmin la yanfa'u, wa mindu'a'in la yusma'u, wa min qalbin la yakhsha'u, wa min nafsin la tashba'u [O Allah, I seek refuge with You from knowledge that is of no benefit, from a supplication that is not heard, from a heart that does not fear (You) and from a soul that is not satisfied].'"
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو خَالِدٍ الأَحْمَرُ، عَنِ ابْنِ عَجْلاَنَ، عَنْ سَعِيدِ بْنِ أَبِي سَعِيدٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ كَانَ مِنْ دُعَاءِ النَّبِيِّ ـ صلى الله عليه وسلم ـ " اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ عِلْمٍ لاَ يَنْفَعُ وَمِنْ دُعَاءٍ لاَ يُسْمَعُ وَمَنْ قَلْبٍ لاَ يَخْشَعُ وَمِنْ نَفْسٍ لاَ تَشْبَعُ " .
also referenced under: Hadith 250 (Reference) & Volume 1, Book 1, Hadith 250 (DarusSalam)