Ask them about the town that was situated on the seaside , when they violated the Sabbath , when their fish would come to them on the Sabbath day , visibly on the shore , but on days when they were not keeping Sabbath they would not come to them . Thus did We test them because of the transgressions they used to commit .