He saw a man flicking pebbles and said, "Do not flick pebbles, for the Prophet of Allah ﷺ used to forbid flicking pebbles," or "used to dislike flicking pebbles." Kahmas was uncertain which.
أخبرنا أحمد بن سليمان قال حدثنا يزيد قال أنبأنا كهمس عن عبد الله بن بريدة
أنه رأى رجلا يخذف فقال لا تخذف فإن نبي الله ﷺ كان ينهى عن الخذف أو يكره الخذف شك كهمس
Bukhari narrated it in the Book of Slaughtered Animals and Game, Chapter on Pellet Shooting and Sling Stones, hadith no. 5479, from the hadith of Yazid bin Harun. Muslim narrated it in the Book of Game and Slaughtered Animals, Chapter on the Permissibility of Using Aids in Hunting and Chasing Off Enemies, and the Disapproval of Pellet Shooting, hadith no. 1954, from the hadith of Kahmas bin Hasan, with the same wording. It is also found in Al-Kubra, hadith no. 7019.