From the Qur'an:
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 AlBaqarah 2/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~
My Lord! Grant me the power and ability that I may be grateful for Your Favours which You have bestowed on me and on my parents, and that I may do righteous good deeds that will please You, and admit me by Your Mercy among Your righteous slaves.
- Surah AnNaml :19/93 -
p/s: hope it's helped, keep the spirit strong ..