Ask them concerning the town standing close by the sea. Behold! they transgressed in the matter of the Sabbath. For on the day of their Sabbath their fish did come to them, openly holding up their heads, but on the day they had no Sabbath, they came not: thus did We make a trial of them, for they were given to transgression. 163 When some of them asked, "Why do you admonish a people whom God is going to destroy or to afflict with a severe punishment?" They answered, "In order to be free from blame before your Lord, and that they may perhaps fear Him." 164 When they disregarded the warnings that had been given them, We rescued those who forbade Evil; but We visited the wrong-doers with a grievous punishment because they were given to transgression. 165 When in their insolence they transgressed (all) prohibitions, We said to them: "Be ye apes, despised and rejected." 166 Then your Lord declared that, until the Day of Resurrection, He would send others against them to inflict terrible suffering on them. Your Lord is swift in retribution; yet surely He is most forgiving and merciful. 167 We split them up into sections on the earth. Some of them are righteous while some of them are otherwise, and We tested them with blessings and misfortunes, so that they might return to the right path. 168 Then others succeeded them who inherited the Book and availed themselves of the vanities of this lower world, saying: 'It will be forgiven us' But if similar vanities came their way, they would again take them. Have they not taken the covenant of the Book, which they have studied, to tell nothing of Allah except what is true? Surely, the Everlasting Life is better for the cautious, do you not understand! 169 Those who devote themselves to the teachings of the Book and are steadfast in prayer (should know that) the reward of those who reform themselves will not be lost. 170 ۞ And [mention] when We raised the mountain above them as if it was a dark cloud and they were certain that it would fall upon them, [and Allah said], "Take what We have given you with determination and remember what is in it that you might fear Allah." 171