It is reported that Imām Al-Shāfiʿī – Allāh have mercy on him – said:

Do not live in a land in which there is neither a scholar to inform you about your religion, nor a doctor to tell you about your body.

Al-Bayhaqī, Manāqib Al-Shāfiʿī 2:115