As he sees how faulty he is compared to His perfection, His full knowledge of and control over the one whom He loves, he surrenders to Him. From such surrender great stations branch out; some of those who know them know them, and these reach the ultimate end of every type of perfection.
But the greatest bliss is the good pleasure of Allah: that is the supreme joy; such is the ultimate end of benevolence, the zenith of gratitude.
Humans do mistakes. They can be ambiguous and can't really differentiate between their need and desire. Sometimes we keep praying for the things which are not for our best of interest. But Allah knows when and what to give to us, He is the best of planners.
As a religion, Islam is regarded as a gateway to achieving true contentment and peace of mind, because true Muslims understand the fact that life is a test that is going to determine our state in the afterlife. For that reason, true Muslims are humble, respectful, well mannered, and are not obsessed with materialistic desires.
Happiness and Contentment:
For most people, achieving happiness is their ultimate goal. But the problem lies in how they define happiness. People tend to search for happiness by involving themselves in addictions such as smoking, drinking, shopping, and so on.
Sure, these may be good temporary stress relievers, but they are not sustainable. At least in terms of health and wealth. Allah assures us that true, sustainable happiness and contentment can be found only in one place.
He says: “Verily in the remembrance of Allah do the hearts find rest”
Islam teaches us to be content and happy for what we have. The Prophet (SAW) said: “Look at those who stand at a lower level than you but don’t look at those who stand at a higher level than you, for this would make the favors (of Allah) insignificant (in your eyes)”.
With great contentment, one can benefit from being happy, rich, self-sufficient, and have a distinct feeling of inner peace.
As a great blessing, Allah has made trials easy for believers. But this applies to genuine believers who resign themselves to destiny. A Muslim who truly believes and who sincerely submits himself to Allah watches the constant change of images before him with excitement, thanks and gratitude. Someone sitting in a chair and watching a film in comfort also watches the destiny appointed for him with trust and joy. All the images of that destiny, that are sometimes highly active, sometimes frightening, sometimes appeal to the physical senses and are sometimes very calm, contain the joy and excitement of faith. Frightening images have been specially prepared. They have been planned right down to the finest detail. But at the end of the day they are all within the knowledge and under the control of Allah.
However, there is a point here that must not be misunderstood: Believers may encounter all kinds of trouble and difficulty in this world, they may lose their worldly goods, grow physically weak, fall ill or get injured and killed. However, none of these are “evils” for Muslims. Allah tests His servants by means of these and recompenses the fortitude they display many time over in this world and the next. And as a result of the trial in this world, Muslims are finally rewarded with the eternal life of the Hereafter.
Aware of this truth, Muslims therefore feel great joy in the face of difficulty. This joy experienced by believers is also a special condition that neutralizes the traps set by the unbelievers and denies them success. When unbelievers see that joy and enthusiasm at times when they imagine they have made things difficult for believers they realize they can never do them any harm. Muslims’ words at times of trouble also reveal to the unbelievers their fortitude and submission.
Being a Muslim, it is to be understood that all the things we pray for will come to our way if and only if they're meant to be. Else Allah is the giver, and He will bless you with THE BEST.