when they embark in the ships they call upon allah consecrating their faith to him. but when he rescues them and brings them to land they suddenly begin to associate others with allah in his divinity
فإذا ركبوا في الفلك دعوا الله مخلصين له الدين فلما نجاهم إلى البر إذا هم يشركون