Narrated Ibn Mas'ud:
"The Messenger of Allah (ﷺ) entered Makkah during the year of the Conquest, and there were three hundred and sixty Nusb (Altars to sacrifice to idols) around the Ka'bah. So the Prophet (ﷺ) started hitting them with a stick he had in his hand" - or perhaps he said: "With a piece of wood, and he was saying: The truth has come and falsehood has vanished. Surely falsehood is ever bound to vanish (17:81). The truth has come and falsehood can neither originate anything nor resurrect (anything) (34:49)."
English reference: Vol. 5, Book 44, Hadith 3138
Arabic reference: Book 47, Hadith 3431