A fatwa is a formal legal opinion or ruling given by a qualified Islamic scholar on a specific issue in accordance with Islamic law (Sharia).