When people worship the creations or objects other than the Real Creator,the sense of seriousness towards God is lost in them and thus they dare to commit sins fearlessly. Apart from that, the human race gets divided into sects and castes formed around the different deities taken by them.
If such people suddenly face unbearable calamities they ignore those false gods and turn to the real true God.
God Almighty exposes the hypocrisy of such people in the Quran by quoting an example of men traveling at sea:
10:22. It is He who enables you to travel on land and sea until, when you are in ships and they sail with them by a good wind and they rejoice therein, there comes a storm wind and the waves come upon them from everywhere and they assume that they are surrounded, supplicating Allah , sincere to Him in religion, "If You should save us from this, we will surely be among the thankful."
(Allah means ‘the only God worthy of worship’)
When such a life-threatening situation arises, people will forget all the deities they worshiped every day. They do not try to bring to mind the images, idols or tombs (as in Dargahs) which they worshiped on the shore and plead, 'Save us from this danger'. Instead, they realize that only the true God can save them. They call on the Creator with a pure heart. The above verse says that they sincerely realizes that only He can answer the prayers and that He is the only Lord worthy of worship both on land and sea.
Thanklessness of people!
But if the Lord accepts their plea and saves them, they forget to be thankful to Him after reaching the shore. Again they go back to worship their false gods. God Almighty points out this trend:
17:67 Then do you feel secure that [instead] He will not cause a part of the land to swallow you or send against you a storm of stones? Then you would not find for yourselves an advocate.
17:68 Or do you feel secure that He will not send you back into the sea another time and send upon you a hurricane of wind and drown you for what you denied? Then you would not find for yourselves against Us an avenger.
17:69 Or do you feel secure that He will not send you back into the sea another time and send upon you a hurricane of wind and drown you for what you denied? Then you would not find for yourselves against Us an avenger.
So for whatever may the reason, we must not forget our true reality. We should worship only the One Who has created us and sustains us. Unto Him we have to return and answer for our deeds on earth. Let us not forget that death is not an end but a beginning of the eternal life.