In a hadith recorded in Saheeh Muslim, Zaid bin AlqamRadhi Allahu Anhunarrated that the Prophetﷺ used to supplicate:
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ عِلْمٍ لَا يَنْفَعُ وَمِنْ قَلْبٍ لَا يَخْشَعُ وَمِنْ نَفْسٍ لَا تَشْبَعُ وَمِنْ دَعْوَةٍ لَا يُسْتَجَابُ لَهَا
Allahumma inni a’udhu bika min ‘ilmin la yanfa’u wa min qalbin la yakhsha’u wa min nafsin la tashba’u wa min da’watin la yustajabu laha
“O Allah, I seek refuge in You from knowledge which does not benefit, from a heart that does not entertain the fear (of Allah), from a soul that is not satisfied and the supplication that is not answered.”