Apes have been used as a metaphor in the Qur'an. Apish mentality.
2:65 You are well aware of those among you who broke the Sabbath, whereupon We said to them, “Be you held in contempt like apes!” [For social and ecological reasons and to inculcate the sanctity of the laws in their hearts, they had been commanded to desist from fishing or working on Saturdays and to strengthen their social ties rather than going after business on that day (4:154, 7:163-167, 16:124). Persistent indiscipline is more befitting of an apish, rather than human mentality. (4:47, 4:154, 5:60). Note: Strangely enough, some ancient, and even modern commentators like Maududi, maintain that they were physically transformed into apes!]