Surah Al-Ankaboot Verse 65 - English Translation by Mir Aneesuddin
Surah Al-Ankabootفَإِذَا رَكِبُواْ فِي ٱلۡفُلۡكِ دَعَوُاْ ٱللَّهَ مُخۡلِصِينَ لَهُ ٱلدِّينَ فَلَمَّا نَجَّىٰهُمۡ إِلَى ٱلۡبَرِّ إِذَا هُمۡ يُشۡرِكُونَ
So when they embark on a ship they pray to God, making religion exclusively for Him, but when He brings them safe to the land then they associate partners (with Him)