The Messenger of Allah ﷺ prohibited throwing pebbles (in sport) saying : game is not caught by such means. Neither is an enemy injured, but it may sometimes put out an eye or break a tooth. (Using translation from Abū Dāʾūd 5270)
أَنَّ رَسُولَ اللهِ ﷺ نَهَى عَنِ الْخَذْفِ وَقَالَ إِنَّهُ لَا يَنْكَأُ عَدُوًّا وَلَا يَصِيدُ صَيْدًا وَلَكِنَّهُ يَكْسِرُ السِّنَّ وَيَفْقَأُ الْعَيْنَ