Surah Al-Ankaboot Verse 65 - English Translation by Mufti Taqi Usmani
Surah Al-Ankabootفَإِذَا رَكِبُواْ فِي ٱلۡفُلۡكِ دَعَوُاْ ٱللَّهَ مُخۡلِصِينَ لَهُ ٱلدِّينَ فَلَمَّا نَجَّىٰهُمۡ إِلَى ٱلۡبَرِّ إِذَا هُمۡ يُشۡرِكُونَ
So when they embark on a ship, they invoke Allah, having their faith purely in Him. But when He saves them (and brings them) to the land, in no time they start committing shirk (ascribing partners to Allah)