The Messenger of Allah (ﷺ) said: “Whoever smoothes the pebbles, then he has engaged in Laghw.”*

*Meaning he has done what is not suitable.
Sunan Ibn Majah Book 5, Hadith 223