linguistic:translation, information:highlighting
Religious thought

Ibn Khaldun believes that communication between the tangible and intangible world is the basis of every religion, and the credit for its occurrence is the human spirit, as it is the mediator between God and humans. It is immortal by nature and does not perish, and has characteristics that enable it to communicate with God. However, most souls have lost their hidden ability and are connected to the sensory world only. A small number of them still maintain their full ability to communicate with God. These are the ones God chose and they became prophets, so their souls leave the sensory world to receive from God. Their souls abandon the sensory world in order to receive from God what they should convey to humans. Religions arise only from this connection. He believes that religions that rely on institutions of prediction and reconnaissance are false, but they partly contain some truth. A person’s concentration on a specific thing for a long period makes him forget everything and become attached to what he focused on. Only, this focus makes him see the non-sensory world very quickly and in a very imperfect way, and these are pagan religions.

Ibn Khaldun agrees with Sufism and believes that if a person maintains his good faith and is stripped of the desire to create a new religion and strives to separate himself from the sensory world, he will be able to approach the divine essence and the ideas of scholars will appear to him clearly. But if he strives in this detachment and mysticism out of a desire to excel over others, he will not communicate with God, but with demons. Also, the human spirit is able to see some things of the future through vision, but on the condition that this spirit be completely upright and very pious and pure, otherwise the vision will come from the devils.