This is a question that has puzzled academics and theologians through the centuries and been debated in many different settings. Religion involves the belief in, and worship of a higher power and it often involves following a code of practice known as a faith.
Some argue that religion is a form of knowledge, although not in the scientific or empirically proven sense. Rather, it could be considered a type of knowledge that cannot be proven or disproven through scientific analysis. This knowledge comes primarily through personal experience, faith in a particular religion, and a commitment to that religion.
Those who argue in favor of religion being a form of knowledge point out the distinct traits of faith such as sacred writings, prayer, meditation, and rituals. These are activities which, in combination with personal experience, can lead to a form of understanding of the spiritual. It is also argued that, in some aspects, religion does require knowledge as religious communities depend upon studying texts and scriptures as part of their spiritual practice.
On the other hand, those who argue against religion being a form of knowledge hold the opinion that knowledge requires empirical evidence, which is not always present in religious matters. They point out that, should the definitions of knowledge remain the same, recognition must be given to empirically verifiable sources, such as scientific evidence, to demonstrate lasting and reliable conclusions.
Whether religion is a form of knowledge or not can be argued both ways. Ultimately it depends upon the individual and what they believe knowledge to be. For more information, please see this article: https://plato.stanford.edu/entries/religious-knowledge/