It is narrated from Sayyiduna Uthman bin Abi al-As (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) ordered him to build the mosque of Ta'if at the very place where their idol (taghut) had stood.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 8323