The Messenger of Allah ﷺ used to say: "O Allah, I seek refuge in Thee from four things: Knowledge which does not profit, a heart which is not submissive, a soul which has an insatiable appetite, and a supplication which is not heard." (Using translation from Abū Dāʾūd 1548)
أَنَّهُ سَمِعَ أَبَا هُرَيْرَةَ يَقُولُ كَانَ رَسُولُ اللَّهِ ﷺ يَقُولُ اللَّهُمَّ أَعُوذُ بِكَ مِنْ أَرْبَعٍ مِنْ عِلْمٍ لَا يَنْفَعُ وَقَلْبٍ لَا يَخْشَعُ وَنَفْسٍ لَا تَشْبَعُ وَمِنْ دُعَاءٍ لَا يُسْمَعُ