Ali bin Abdullah bin Abbas (may Allah have mercy on him) narrates: "The Prophet of Allah (peace and blessings be upon him) came to Makkah, and around the House of Allah there were three hundred and sixty idols, whose feet Iblis had fixed very firmly with lead, and in the hand of the Prophet of Allah (peace and blessings be upon him) was a small wooden stick." He said: "He (peace and blessings be upon him) kept pointing at them one by one and saying: 'The truth has come, and falsehood can neither originate anything nor restore it,' until he (peace and blessings be upon him) had toppled all of them, down to the last idol."
It has a supporting narration (shahid) in the two Sahihs through the narration of Abu Ma'mar Abdullah bin Sakhbarah (may Allah have mercy on him), which he narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him).