The Prophet ﷺ mentioned wiping the pebbles in the mosque and said, "If you must do it, then only once."
ذكر النبي ﷺ المسح في المسجد. يعني الحصى فقال: إن كنت لا بد فاعلا فواحدة.
Bukhari narrated it in "Actions During Prayer" (1207) through the hadith of Shayban, and Muslim narrated it in "Mosques" (546) through the hadith of Hisham Dastawai, both of them from Yahya bin Abu Kathir, from Abu Salama, from Muaiqib, who then related it. The wording given here is Muslim's, while Bukhari's wording is that the Prophet ﷺ, regarding a man smoothing the dust where he prostrates, said, "If you must do it, then only once."If this ruling is established for dust, it is likewise established for pebbles. Bukhari, however, avoided mentioning pebbles because the narrator's remark, "meaning the pebbles," could possibly have been an explanation added by the companion himself rather than part of the actual wording. So he held to what was certain and derived the ruling on pebbles by analogy, titling his chapter "Wiping Away Pebbles During Prayer."As for Muaiqib, with a dammah on the meem and a fatha on the ain, he was the son of Abu Fatimah al-Dawsi. He embraced Islam early on in Makkah, and migrated to Abyssinia during the second migration. He later came to Madinah, where he was entrusted with the Prophet's ﷺ signet ring. He died in the year forty-six.