This is the intellectual fitnah. It occurs when right is made to look wrong, and wrong is made to look right. The Prophet described a time when a person would wake up as a believer and go to sleep as a disbeliever, selling their religion for a paltry worldly gain.
The Prophet Muhammad (PBUH) described the future in graphic detail. He knew we would live in times where we would feel like strangers (Ghuraba). He knew the truth would be inverted. He knew the scholars would be killed and the ignorant would lead. al fitan
Understanding Al-Fitan: Theology, History, and Eschatology in Islamic Thought This is the intellectual fitnah