Surah Al-'Ankabut, Ayah 65
Quran 29:65 · The Spider · Makki · Para 21 · Page 404
فَاِذَا رَكِبُوْا فِی الْفُلْكِ دَعَوُا اللّٰهَ مُخْلِصِیْنَ لَهُ الدِّیْنَ ۚ۬ فَلَمَّا نَجّٰىهُمْ اِلَی الْبَرِّ اِذَا هُمْ یُشْرِكُوْنَ ۟ۙ
Transliteration
Fa-itha rakiboo fee alfulki daAAawooAllaha mukhliseena lahu addeena falammanajjahum ila albarri itha hum yushrikoon
Saheeh International
And when they board a ship, they supplicate Allāh, sincere to Him in religion [i.e., faith and hope]. But when He delivers them to the land, at once they associate others with Him
Al-Mukhtasar fi Tafsir
When the idolaters board ships and sail the ocean, they call out to Allah alone, sincerely supplicating to Him to save them from drowning. After Allah saves them from drowning, they return to their idolatry, calling out to their idols together with Him.
Tafsir Ibn Kathir (abridged)
Explains 29:64–29:66 together — read it on 29:64