Ibrahim and Hazrat Sha'bi state that it is permissible to pray in the places of worship of Christians and Jews.