From Sahih Bukhari (Hadith 3849):
Narrated `Amr bin Maimun:During the pre-Islamic period of ignorance I saw a she-monkey surrounded by a number of monkeys. They were all stoning it, because it had committed illegal sexual intercourse. I too, stoned it along with them
Reference: Bukhari 3849