It may be that you detest something which is good for you; and it may be you love something even though it is bad for you. Allah knows, and you do not know.
~ Surah Baqarah / Ayah 216
Lessons from this verse: Pain doesn’t feel good when it happens, but Allah knows that it may be the best thing for us at that moment.
And sometimes we may be praying so hard for stuff, and Allah knows how bad it is for us. Allah knows and we do not.
Trust in Allah.