Avicenna said this quote

The world is divided into men who have wit and no religion and men who have religion and no wit.