Human thoughts can be divided into many types. The 3 known types are Jabariyah, Qadariyah and Sunnah wal Jama'ah.
In Jabariyah, a person thinks everything is planned, directed and executed by Allah SWT and a person has no control over anything that affects him.
In Qadariyah, a person thinks everything follows Allah's grand plan and therefore there is no need to do anything except wait on for Allah SWT to roll out his plan.
In Sunnah wal Jama'ah, the views are: When a person obtains his goals and is happy, he is thankful to Allah SWT (sukur, shukr); when he faces hardship, he is patient (sabar, sabr) and works hards (iktiar) to find means and ways to work out of a
difficult condition or in any situation to better himself, and he
believes Allah SWT will help him (Tawakkal-tu-'ala-Allah). He does not blame himself nor Allah SWT but takes hardship as a lesson to better himself. Sabar, iktiar, syukur, tawakkal are characteristics of an obedient Muslim.
Source: tv9, Madrasah Akidah, Ustaz Syed Mohd Norhisyam Tuan Padang