Surah Al-Kahf

18:79

أَمَّا ٱلسَّفِينَةُ فَكَانَتْ لِمَسَٰكِينَ يَعْمَلُونَ فِى ٱلْبَحْرِ فَأَرَدتُّ أَنْ أَعِيبَهَا وَكَانَ وَرَآءَهُم مَّلِكٌۭ يَأْخُذُ كُلَّ سَفِينَةٍ غَصْبًۭا

As for the ship, it belonged to poor people working at sea. So I intended to cause defect in it as there was after them a king who seized every [good] ship by force.

Tafsir 18:79

As for the ship which you criticised me for breaking, it belonged to some weak people who worked on the sea and who were unable to protect it. So I wanted to make it defective by what I did to it, so that it would not be taken by a king who was ahead of them and who would forcefully take possession of every good ship from its owners but leave every defective ship.