How to Remember Allah’s Blessings and Give Thanks for Them
Question

Our Lord, may He be Glorified and Exalted, enjoins us in the Holy Quran to remember the blessings that Allah has bestowed upon us, numerous blessings, such as when He, may He be Exalted, says (interpretation of the meaning]:
“O you who have believed, remember the favor of Allah upon you when armies came to [attack] you and We sent upon them a wind and armies [of angels] you did not see. And ever is Allah , of what you do, Seeing.” [Al-Ahzab 33:9]
My question is: how can we remember blessings as enjoined by our Lord? Is it what is meant by mentioning them before people and speaking of them, or is what is meant simply calling them to mind, or what? May Allah reward you with all good.
Praise be to Allah.The command mentioned in the verse quoted by the questioner is a command to the Companions and the believers to remember the blessings of Allah and His grace towards them, and His kindness to them in causing the defeat of their enemies and frustrating their enemies’ plots.
Ibn Kathir (may Allah have mercy on him) said:
“Here Allah, may He be Exalted, is speaking of His blessings, grace and kindness to His believing slaves when He averted their enemies and inflicted defeat upon them in the year when they came together and formed an alliance against them, which was the year of Al-Khandaq [the Trench]." (Tafsir Ibn Kathir,  6/383)
When there is a command in the Quran to remember Allah’s blessing, what is meant is to remember it in one’s heart, by calling to mind Allah’s grace and favour in bestowing it upon His slaves; remembering it in one’s words, by speaking of it; and remembering it in one’s physical actions, by not using that blessing in ways that incur the wrath of Allah, may He be Glorified and Exalted.
Remembering the blessing is giving thanks for it , and may be done in one’s heart, in one’s words or in one’s actions; each of them confirms the others, unless the gratitude is false.
Shaykh Ibn `Uthaymin (may Allah have mercy on him) said, commenting on the verse (interpretation of the meaning): “And remember the favour of Allah upon you.” [Al-Baqarah 2:231]:
“Remembering may be done in one’s heart, in one’s words and in one’s actions. Remembering it in one’s words means saying: Allah has blessed me with such and such, as Allah, may He be Exalted, says (interpretation of the meaning): “But as for the favour of your Lord, report [it]” [Ad-Duha 93:11]. So you should praise Allah, may He be Glorified and Exalted, for it by saying: O Allah, to You be praise for what you have blessed me with of wealth, or a wife, or children, and so on.
Remembering it in one’s heart is by calling it to mind and acknowledging that it is a blessing from Allah.
Remembering it in one’s actions is by striving to obey Allah, and by showing the effects of His blessing on you." (Tafsir Surat Al-Baqarah  3/132)
Al-Harawi (may Allah have mercy on him) said: “What is meant by gratitude is three things: acknowledging the blessing, then appreciating the blessing, then giving praise for it .”
Ibn Al-Qayyim (may Allah have mercy on him) said, commenting on the words of Al-Harawi:
“As for acknowledging it, that means calling it to mind, realising its significance and recognising it as a blessing in and of itself.
So acknowledging it is done in the mind.
Appreciating it means showing humility when receiving it from the Bestower, by expressing one’s need for it and acknowledging that it came to him without him deserving it and without him paying any price; rather he sees himself as being completely dependent upon Allah. This attitude shows true appreciation.
“then giving praise for it”: praise for the Bestower in connection with the blessing is of two types: general and specific.
The general type is ascribing to Him the attributes of generosity, kindness, munificence and so on.
The specific type is speaking of His blessing, and stating that it came to him from Him, as Allah, may He be Exalted, says (interpretation of the meaning): “But as for the favour of your Lord, report [it].” [Ad-Duha 93:11]
Regarding this reporting or speaking of the blessing that is enjoined, there are two views:
The first is that it means mentioning the blessing and speaking of it, by saying: Allah has blessed me with such and such. Muqatil (may Allah have mercy on him) said: Give thanks for what Allah has mentioned of blessings to you in this surah, such as helping orphans, granting guidance after misguidance, and granting self-sufficiency after poverty.
Speaking of the blessings of Allah is gratitude , as in the Hadith of Jabir (may Allah be pleased with him): “Whoever has a favour done for him, let him reciprocate, and if he cannot reciprocate, then let him praise [the person who did him the favour], for if he praises him, then he has thanked him, but if he conceals it, then he has been ungrateful towards him. And whoever pretends to have what he has not been given is like one who wears two garments of falsehood.” (Narrated by Al-Bukhari in Al-Adab Al-Mufrad, 215; classed as authentic by Al-Albani)
This Hadith mentions three types of people: one who is grateful for the blessing and gives praise for it; one who denies it and conceals it; and one who pretends to be one of those who were given it when that is not the case, so he pretends to have something that he was not given. In another report it says: “Whoever does not give thanks for a little will not give thanks for a great deal, and whoever does not show gratitude to people has not shown gratitude to Allah. Speaking of the blessing of Allah is gratitude, and not speaking of it is ingratitude. Unity is a mercy and division is a punishment.” [Narrated by ‘Abdullah ibn Ahmad in Zawa’id Al-Musnad, 18449; classed as sound by Al-Albani)
The second view is that speaking of the blessing that is enjoined in this verse [at the end of Surah Ad-Duha, quoted above] means calling people to Allah, conveying His message and teaching the Ummah. Mujahid (may Allah have mercy on him) said: It refers to Prophethood. Az-Zajjaj (may Allah have mercy on him) said: It means: Convey that with which you [O Prophet] have been sent, and speak of the Prophethood that Allah has bestowed upon you. Al-Kalbi (may Allah have mercy on him) said: It refers to the Quran, which Allah commanded him to recite.
The correct view is that it includes both types, because each of them is a blessing for which it is enjoined to give thanks and speak of it. Manifesting it is part of being grateful for it." (Madarij As-Salikin 2/237)
Ibn Al-Qayyim (may Allah have mercy on him) said regarding gratitude:
“It is based on three pillars: acknowledging it inwardly, speaking of it outwardly, and using it to earn the pleasure of the One Who granted it and bestowed it." (Al-Wabil As-Sayyib, p. 5)
And Allah knows best.