The Cave - 18:82 And the wall belonged to the two orphans of the city. There was a treasure under the wall that belonged to them. Their father was a righteous man. Your Lord willed that when they grew up and became full-grown, they should reveal their treasure as a mercy from your Lord. I did not do these things of my own will. These are the explanations of that which you cannot bear.
In the context of verses 67, 68...82: "What man thinks is good may be bad and what he thinks is bad may be good."
The Cow/2:216 War has been made obligatory upon you though you dislike it. What you dislike may be good for you and what you like may be bad for you. Allah knows, even if you do not know.

The Women/4:19 Believers! It is not lawful for you to inherit the property of women against their wishes. Do not press them to take back from them what you have already given them. Except when they commit fornication. Get along well with them. If you dislike them, Allah has put much good in what you dislike.

The Night Journey/17:11 When man thinks he is praying for something good, he is actually praying for something bad. Man is very hasty

The Light/24:11 A gang of you invented that slander. Do not think that it is bad for you; rather it is a good (lesson) for you. By the way, every one of them has shared the sin. And those of them who are the ringleaders deserve a great punishment.