BUKHARI 6220: from ʿAbdullāh b. Mughaffal al-Muzanī —
The Prophet ﷺ forbade the throwing of stones (with the thumb and the index or middle finger), and said "It neither hunts a game nor kills (or hurts) an enemy, but it gouges out an eye or breaks a tooth."

البخاري ٦٢٢٠: عن عبد الله بن مغفل المزني —
نَهَى النَّبِيُّ ﷺ عَنِ الْخَذْفِ وَقَالَ إِنَّهُ لاَ يَقْتُلُ الصَّيْدَ وَلاَ يَنْكَأُ الْعَدُوَّ وَإِنَّهُ يَفْقَأُ الْعَيْنَ وَيَكْسِرُ السِّنَّ


Sound (Bukhārī)
Bukhārī > Adab (Good Manners and Form) > § It is forbidden to throw stones
hadithunlocked.com