Sayyiduna Ibn Mas'ud (may Allah be pleased with him) says: The Noble Prophet (peace and blessings be upon him) entered the Ka'bah on the day of the conquest of Makkah, and on his right and left were three hundred and sixty idols. The Prophet (peace and blessings be upon him) would strike them with a stick and say: “﴿JAA'AL-HAQQU WA ZAHAAQAL-BAATILU INNAL-BAATILA KAANA ZAHOOQAA﴾ The truth has come and falsehood has vanished; surely falsehood is ever bound to vanish.” So the idols would fall down on their faces.
Related hadith on this topic