It has been narrated by Ibn Abdullah who said
The Prophet (ﷺ) entered Mecca. There were three hundred and sixty idols around the Ka'ba. He began to thrust them with the stick that was in his hand saying:" Truth has come and falsehood has vanished. Lo! falsehood was destined to vanish" (xvii. 8). Truth has arrived, and falsehood can neither create anything from the beginning nor can It restore to life
This tradition has been narrated by Ibn Abu Najah through a different chain of transmitters up to the word
Zahaqa, (This version) does not contain the second verse and substitutes Sanam for Nusub (both the words mean" idol" or" image" that is worshipped).