The Universality of Calling on Allah
Prayer according to Islam is the life and soul of human existence and as the Holy Prophet said; ‘the marrow of Divine service.’ Not only the righteous servants are spoken of in the Quran as praying to Allah, but even unbelievers and idolaters are frequently mentioned as calling upon Allah when they find themselves in distress or adversity. It is distress that makes the latter realize their helplessness and turn their attention back to the true Source of all goodness and happiness. But when Allah has removed their distress and have shown them special Mercy, they forget themselves and attribute their relief to their own intellect.
The Quran says of such people:
When trouble toucheth a man, he crieth unto Us (in all postures) - lying down on his side, or sitting, or standing. But when We have solved his trouble, he passeth on his way as if he had never cried to Us for a trouble that touched him! Thus do the deeds of transgressors seem fair in their eyes! (10:12)