And when a wave like mountains covers them they call upon Allah , being sincere to Him in obedience , but when He brings them safe to the land , some of them follow the middle course ; and none denies Our signs but every perfidious , ungrateful one .