The Jews breach the Sanctity of the Sabbath
Allah said,
وَلَقَدْ عَلِمْتُمُ الَّذِينَ اعْتَدَواْ مِنكُمْ فِي السَّبْتِ فَقُلْنَا لَهُمْ كُونُواْ قِرَدَةً خَاسِيِينَ
And indeed you knew those amongst you who transgressed in the matter of the Sabbath (i.e. Saturday). We said to them;"Be you monkeys, despised and rejected."
وَلَقَدْ عَلِمْتُمُ الَّذِينَ
(And indeed you knew).
This Ayah means, O Jews! Remember that Allah sent His torment on the village that disobeyed Him and broke their pledge and their covenant to observe the sanctity of the Sabbath.
They began using deceitful means to avoid honoring the Sabbath by placing nets, ropes and artificial pools of water for the purpose of fishing before the Sabbath. When the fish came in abundance on Saturday as usual, they were caught in the ropes and nets for the rest of Saturday. During the night, the Jews collected the fish after the Sabbath ended.
When they did that, Allah changed them from humans into monkeys, the animals having the form closest to humans. Their evil deeds and deceit appeared lawful on the surface, but they were in reality wicked. This is why their punishment was compatible with their crime.
This story is explained in detail in Surah Al-A`raf, where Allah said,
وَسْيَلْهُمْ عَنِ الْقَرْيَةِ الَّتِى كَانَتْ حَاضِرَةَ الْبَحْرِ إِذْ يَعْدُونَ فِى السَّبْتِ إِذْ تَأْتِيهِمْ حِيتَانُهُمْ يَوْمَ سَبْتِهِمْ شُرَّعًا وَيَوْمَ لَا يَسْبِتُونَ لَا تَأْتِيهِمْ كَذَلِكَ نَبْلُوهُم بِمَا كَانُوا يَفْسُقُونَ
And ask them (O Muhammad) about the town that was by the sea; when they transgressed in the matter of the Sabbath (i.e. Saturday);when their fish came to them openly on the Sabbath day, and did not come to them on the day they had no Sabbath. Thus We made a trial of them, for they used to rebel (disobey Allah). (7;163)
In his Tafsir, Al-Awfi reported from Ibn Abbas that he said,
فَقُلْنَا لَهُمْ كُونُواْ قِرَدَةً خَاسِيِينَ
(We said to them;"Be you monkeys, despised and rejected") means,
"Allah changed their bodies into those of monkeys and swine. The young people turned into monkeys while the old people turned into swine."
Shayban An-Nahwi reported that Qatadah commented on,
فَقُلْنَا لَهُمْ كُونُواْ قِرَدَةً خَاسِيِينَ
(We said to them;"Be you monkeys, despised and rejected"),
"These people were turned into howling monkeys with tails, after being men and women."
The Monkeys and Swine that exist now are not the Descendants of Those that were transformed
Ibn Abi Hatim recorded that Ibn Abbas said,
"Those who violated the sanctity of the Sabbath were turned into monkeys, then they perished without offspring."
Ad-Dahhak said that Ibn Abbas said,
"Allah turned them into monkeys because of their sins. They only lived on the earth for three days, for no transformed person ever lives more than three days. They did not eat, drink or have offspring. Allah transformed their shapes into monkeys, and He does what He wills, with whom He wills and He changes the shape of whomever He wills. On the other hand, Allah created the monkeys, swines and the rest of the creation in the six days (of creation) that He mentioned in His Book."
Allah's statement