It is stated on the authority of Abdullah bin Masood that the unbelievers of the Quraish had installed 360 idols in Ka'bah so strongly that their feet were fixed with lead. When Makkah was conquered and the Prophet (SAW) entered the Holy Ka'bah, he had a stick in his hand. With it, he started pointing towards the idols and reciting this verse: Truth has (now) arrived, and falsehood perished (Surah Al Isra:81). The idol, to which the Prophet (SAW) pointed on its front, fell down to its rear side and the idol, to which he pointed from its rear side, fell down flat on its front side. Source: Combined from Bukhari, Muslim, Bazar, Tabrani and Abu Yaala.