وَاِذَا مَسَّكُمُ الضُّرُّ فِی الْبَحْرِ ضَلَّ مَنْ تَدْعُونَ اِلَّٓا اِیَّاهُۚ فَلَمَّا نَجّٰیكُمْ اِلَى الْبَرِّ اَعْرَضْتُمْؕ وَكَانَ الْاِنْسَانُ كَفُورًا
And when adversity touches you at sea, lost are [all] those you invoke except for Him. But when He delivers you to the land, you turn away [from Him]. And ever is man ungrateful
Saheeh Intl