Surah No. 81, At Takwir, Ayat No. 29
o وَمَا تَشَاؤُونَ إِلَّا أَن يَشَاء اللَّهُ رَبُّ الْعَالَمِينَ
The truth is that no act of man takes a concrete shape solely by his own will, but each act is implemented only when the will of Allah combines with the will of the man. One must understand that if in this world any person had the power to accomplish whatever he wanted to accomplish, the system of the world would be disturbed. This is very much confirmed that the will of Allah is dominant over all other wills. If a person desires to achieve anything in this world then he should make efforts and pray and then request the Almighty to combine his will with the will of Allah Who would then allow to fulfil his desire.
One must take care that he should seek pleasure of Almighty and good will and should avoid doing anything against His will.