"Allãh and His grace. When divine favour was bestowed on Khalîl Shãh, he constructed the Jãmi‘ Masjid for the decoration of Islãm; he ruined the idol-house and temple of the polytheists, (and) completed the Masjid and pulpit in its place. Without doubt, his building was accepted by Allãh. What a pleasing edifice became the calculation of its year."
January 1, 1970
https://en.wikiquote.org/wiki/Conversion_of_non-Islamic_places_of_worship_into_mosques