The Prophet (peace be upon him) taught us many duas about not only knowledge but it’s actually making sure that you stick to that knowledge that Allah gives you firmness in faith. So he taught us to say:
O Allah guide me and keep me firm.
Imam Al Hassan Al Basri when he used to read the verse in chapter Hud, the hardest verse ever revealed to the Prophet (peace be upon him):
So be firm as you’ve been commanded and those who have turn back to Allah with you and do not turn back on your heels (don’t turn away from faith). (Quran 11: 112)
But the learned is not like the experienced. So Imam Al Hassan Al Basri every time he would read that verse, he would say:
“O Allah you are our Lord so grant us that firmness.”
The most frequent dua of the Prophet (peace be upon him) was:
O turner of hearts, keep my heart firm on Your path.
Your heart is already inconsistent, but then something happens and you have to make sure that it stays consistent enough on faith, and that it doesn’t go wild and all over the place.