To be a servant of Allah means leading one’s whole life for the purpose of gaining Allah’s pleasure and approval. It means trying to carry out all actions in the best possible manner so as to gain Allah’s approval, fearing Allah alone and orienting all one’s ideas, words, and deeds to this purpose. Allah has brought it to our attention in the Quran that being a servant to Him covers the whole life of the individual:
Say: ‘My salat (prayers) and my devotions, my living and my dying, are for Allah alone, the Lord of all the worlds.’ (Surat al-An’am: 162)