It was narrated from Sa'eed bin Jubair that :
Abdullah bin Mughaffal was sitting beside a nephew of his, the nephew hurled a pebble and he told him not to do that, and he said: "The Messenger of Allah (ﷺ) had forbidden that. He (the Prophet) said: 'It cannot be used for hunting and it cannot harm an enemy, but it may break a tooth or put an eye out." He said." His nephew hurled another pebble and he ("Abdullah bin Mughaffal) said: 'I tell you that the Messenger of Allah forbade that (and you go hurl another pebble)? I will never speak to you again.'"
Arabic/English book reference: Vol. 1, Book 1, Hadith 17