Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran: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."  

He it is Who conveys you (yusayyirukum: a variant reading has yanshurukum) across the land and the sea, until when you are in ships and they sail with them (there is a shift of address from second ˹to third˺ person) with a fair, gentle, breeze and they rejoice therein, there comes upon them a stormy wind, blowing violently, destroying everything, and waves come on them from every side, and they think that they are overwhelmed, that is, ˹that˺ they shall perish, they call upon God, secure in their faith, their supplication, only to Him: ‘If (la-in: the lām is for oaths) You deliver us from these, terrors, we shall verily be of the thankful’, ˹of those˺ who affirm ˹Your˺ Oneness.
القرآن:١٠:٢٢

هُوَ الَّذِي يُسَيِّرُكُمْ فِي الْبَرِّ وَالْبَحْرِ ۖ حَتَّىٰ إِذَا كُنْتُمْ فِي الْفُلْكِ وَجَرَيْنَ بِهِمْ بِرِيحٍ طَيِّبَةٍ وَفَرِحُوا بِهَا جَاءَتْهَا رِيحٌ عَاصِفٌ وَجَاءَهُمُ الْمَوْجُ مِنْ كُلِّ مَكَانٍ وَظَنُّوا أَنَّهُمْ أُحِيطَ بِهِمْ ۙ دَعَوُا اللَّهَ مُخْلِصِينَ لَهُ الدِّينَ لَئِنْ أَنْجَيْتَنَا مِنْ هَٰذِهِ لَنَكُونَنَّ مِنَ الشَّاكِرِينَ  

{هو الذي يسيركم} وفي قراءة ينشركم {في البر والبحر حتى إذا كنتم في الفلك} السفن {وجرين بهم بريح} وجرين فيه التفات عن الخطاب بريح طيبة} لينة {وفرحوا بها جاءتها ريح عاصف} شديد الهبوب تكسر كل شيء {وجاءهم الموج من كل مكان وظنوا أنهم أحيط بهم} أي أهلكوا {دعوا الله مخلصين له الدين} الدعاء {لئن} لام قسم {أنجيتنا من هذه} الأهوال {لنكونن من الشاكرين} الموحدين.