It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) used to make this supplication: 'Allahumma inni a'udhu bika min 'ilmin la yanfa, wa 'amalin la yurfa, wa qalbin la yakhsha, wa du'a'in la yusma' (O Allah, I seek refuge in You from knowledge that does not benefit, from deeds that are not raised up (for acceptance), from a heart that does not humble itself before You, and from a supplication that is not heard). Imam Abu Bakr bin Abi Shaybah also mentioned this narration with his own chain, while Imam Ibn Hibban recorded in his Sahih, also from Sayyiduna Anas bin Malik (may Allah be pleased with him), that the Prophet (peace and blessings be upon him) said: 'Allahumma inni a'udhu bika min nafsin la tashba, wa a'udhu bika min salatin la tanfa, wa a'udhu bika min du'a'in la yusma, wa a'udhu bika min qalbin la yakhsha' (O Allah, I seek refuge in You from a soul that is not satisfied, I seek refuge in You from a prayer that does not benefit, I seek refuge in You from a supplication that is not heard, and I seek refuge in You from a heart that is not humble).
This hadith also has a supporting report (shahid) from the hadith of Sayyiduna Abdullah bin Abi Awfa (may Allah be pleased with him), which has passed before in the Book of Supplication.