How can we strive to ensure that our intentions for worship are and remain steadfast for Allah? One way is to make those acts of worship not seen by any but Allah. Hide your good deeds and seek only His attention. His approval. His Pleasure.
It is reported that Shurayḥ the Judge used to have a house in which he would spend time alone on Fridays; no one knew what he did in it. (Al-Dhahabī, Siyar A’lām Al-Nubalā` Vol 4 p105)
It is reported that Dāwūd b. Abī Hind fasted for forty years without his family knowing; he would take his lunch out with him and donate it in the street. (Ibid. Vol 6 p378)
And it is reported that Ayyūb Al-Sakhtiyānī used to pray all night and hide it. In the morning, he would raise his voice as if he had just woken up. (Al-Dhahabī, op. cit. Vol 6 p17)
Al-Hasan al-Basri said, speaking about the striving of the Salaf in hiding their deeds, “Indeed, I came across a people, there was not a single deed on the face of this earth which could be done in secret, that they ever did in public!” These Muslims would strive to supplicate to Allah, and nothing could be heard from them except a low whisper between them and their Lord. That is because Allah says, “Call upon your Lord in humility and privately; indeed, He does not like transgressors.” Qur’an surat al-A’raaf (7:55). (Ibn al-Mubarak, az-Zuhd p35-36.)