Sunan an-Nasa'i, Hadith 5470 ⓘ
It was narrated from Anas that : The Prophet [SAW] used to say these supplications: "Allahumma inni a'udhu bika min 'ilmin la yanfa'u, wa qalbin la yakhsha'u, wa du'a'in la yasma'u, wa nafsin la tashba'u. (O Allah, I seek refuge with You from knowledge that is of no benefit, a heart that is not humble, a supplication that is not heard and a soul that is not satisfied.)" Then he would say: 'Allahumma inni a'udhu bika min ha'ula'il-arba' (O Allah, I seek refuge with You from these four.)'"
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا خَلَفٌ، عَنْ حَفْصٍ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ يَدْعُو بِهَذِهِ الدَّعَوَاتِ " اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ عِلْمٍ لاَ يَنْفَعُ وَقَلْبٍ لاَ يَخْشَعُ وَدُعَاءٍ لاَ يُسْمَعُ وَنَفْسٍ لاَ تَشْبَعُ " . ثُمَّ يَقُولُ " اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ هَؤُلاَءِ الأَرْبَعِ " .
also referenced under: Book 50, Hadith 43 (In-Book) & Volume 6, Book 50, Hadith 5472 (DarusSalam)