
To your surprise, the bare thoughts can play a crucial role in determining your feelings and have an even direct effect on how to behave! Similarly, thinking well of Allah can make your Ibadah even more effective.
Allah says in a beautiful Qudsi Hadith: 'I am just as My slave thinks I am, (i.e. I am able to do for him what he thinks I can do for him) and I am with him if He remembers Me. If he remembers Me in himself, I too, remember him in Myself; and if he remembers Me in a group of people, I remember him in a group that is better than they; and if he comes one span nearer to Me, I go one cubit nearer to him; and if he comes one cubit nearer to Me, I go a distance of two outstretched arms nearer to him; and if he comes to Me walking, I go to him running.' Sahih al-Bukhari 7405
So, let’s take a closer look at the meaning of this beautiful Hadith: To think well of Allah means doing good deeds and then expecting Him “swt” to reward you for this. But to think well of Allah while you defy Him and rebel against Him with sin and disobedience is absolutely foolish!
Ibn al-Qayyim (may Allah have mercy upon him) said: "There is no doubt that thinking well of Allah should necessarily be accompanied with righteousness. A righteous person expects that Allah would reward him for his righteousness, and he is certain that Allah does not go back on His promise and that He accepts repentance. As for the sinner who persists in committing major sins, transgressing, and violating Allah's laws, the utter misery caused by his sinfulness prevents him from thinking well of his Lord.
The messenger of Allah “saw” also says: ““Wondrous is the affair of the believer for there is good for him in every matter and this is not the case with anyone except the believer. If he is happy, then he thanks Allah and thus there is good for him. If he is harmed, then he shows patience and thus there is good for him” (Muslim).