All praise is due to Allah, and may His peace and blessings be upon the Prophet (peace be upon him) who said: “Should not I be a grateful servant.” [Sahîh al-Bukhârî and Sahîh Muslim]
Probably the best way to thank Allah is to be aware of His presence and His power at all times and in all places and to keep in mind all the favors He has granted to us whether these favors are seen or unseen.
For example: some of the marvelous favors that He has bestowed upon us are Islam, belief, guidance and righteousness. These are marvelous favors that cannot be equated with other things. If we wish to thank Allah for these favors, we should fulfill our obligations and refrain from falling into all forbidden things. In other words, we do what Allah commands us to do and abandon what He has forbidden us.
Another example of a favor we often take for granted is our sight. This is a great favor from Allah. It has provides us with countless blessings. Allah says: “But if you count the favors of Allah, never will you be able to number them.” [Sûrah Ibrâhîm: 34] .You see the way ahead of you and see what may be beneficial or harmful. If you wish to thank Allah for this favor, you should not use your sight in viewing unlawful things. All other favors and blessings can be treated in the same way.
A good way to make Allah’s favors dearer to us is look at those who are lacking them. When we see the patient in the sickbed, we realize Allah’s favor in giving us good health. We should exploit our good health in obeying Allah by pushing ourselves to perform prayers, fasts, Hajj, and good deeds like enjoining on others what is right and forbidding what is wrong.
When we witness the difficulties suffered by those who are blind and the deaf, we come to know how blessed we are by having full use of our senses.
All of these favors encourage us to thank Allah and use the blessings that He has given us in obedience to Him and not in disobedience.