When the Messenger of Allah ﷺ faced persecution from the polytheists of Makkah, Allah (subḥānahū wa taʿālā) commanded Him to:
“…Endure with patience what they say; and glorify and praise your Lord before sunrise and before sunset.” (50:39)
The āyah above informs us that in difficult situations, we should arm ourselves with two things: sabr and remembering Allah in the morning and the evening. We have to turn to our Lord, glorifying Him before sunrise and sunset: early with the fresh breath of dawn as life awakens, and late as everything begins to cool down when the sun is about to set.
In these two particular periods we can observe the clear change that takes place in the universe as the night changes into day, and the day changes into night. Human hearts feel in touch with the universe around them, as they witness the manifestation of Allah’s power in the transition of day and night.
The heart is calm and reflective, and this is why these are the optimum times for dhikr as one can appreciate Allah’s greatness better.
Tasbīh is urged on the Messenger ﷺ and the believers at these two times, along with the night worship ‘so that you may attain a state of contentment.’ (20:130)
When we glorify Allah, we have a direct link with Him, and one who maintains such a link is content and reassured. He is reassured because he knows that, with Allah’s help, he is safe and secure. Thus, contentment is the fruit of tasbīh and worship.