Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:3849Nuʿaym b. Ḥammād > Hushaym > Ḥuṣayn > ʿAmr b. Maymūn

During the pre-lslamic 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.  

البخاري:٣٨٤٩حَدَّثَنَا نُعَيْمُ بْنُ حَمَّادٍ حَدَّثَنَا هُشَيْمٌ عَنْ حُصَيْنٍ عَنْ عَمْرِو بْنِ مَيْمُونٍ قَالَ

رَأَيْتُ فِي الْجَاهِلِيَّةِ قِرْدَةً اجْتَمَعَ عَلَيْهَا قِرَدَةٌ قَدْ زَنَتْ فَرَجَمُوهَا فَرَجَمْتُهَا مَعَهُمْ