And question them concerning the township which was bordering the sea, when they transgressed the Sabbath, when their fish came to them on the day of their Sabbath, swimming shorewards, but on the day they kept not Sabbath, they came not unto them. Even so We were trying them for their ungodliness. 163 And when a group among them said, “Why do you preach to a people whom Allah is going to destroy or mete out a severe punishment?” They said, “To have an excuse before your Lord, and that perhaps they may fear.” 164 But when they forgot to remember the warning, We saved those who prohibited evil, but inflicted on the wicked a dreadful punishment -- requital for their disobedience. 165 and then, when they disdainfully persisted in doing what they had been forbidden to do, We said unto them: "Be as apes despicable!" 166 And when Thy Lord proclaimed He would send forth against them, unto the Day of Resurrection, those who should visit them with evil chastisement. Surely thy Lord is swift in retribution; surely He is All-forgiving, All-compassionate. 167 And We divided them throughout the earth into nations. Of them some were righteous, and of them some were otherwise. And We tested them with good [times] and bad that perhaps they would return [to obedience]. 168 And a generation hath succeeded them who inherited the scriptures. They grasp the goods of this low life (as the price of evil-doing) and say: It will be forgiven us. And if there came to them (again) the offer of the like, they would accept it (and would sin again). Hath not the covenant of the Scripture been taken on their behalf that they should not speak aught concerning Allah save the truth? And they have studied that which is therein. And the abode of the Hereafter is better, for those who ward off (evil). Have ye then no sense? 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 ۞ The day We shook the mountain above them like an awning, and they feared it would fall over them, (We said): "Hold fast to what We have given you, and bear in mind what is (said) therein so that you may take heed." 171