Dil ki Baat

Science gave me a framework for faith

Muzamil traces his journey from conservative faith to agnostic skepticism, then back to spirituality. The key: understanding religion and science not as opposites, but as two languages describing the same reality.

  • Apr 29, 2026
  • 7 min read

A Childhood Built on Ritual, Not Questions

Muzamil opens by acknowledging the risk of the topic itself. Speaking about faith in Pakistan invites fatwas and social friction. But he frames this not as preaching but as his own story, grounded in his understanding. He grew up in a household where organized religion dominated. Prayer was mandatory, zakat was expected, and the world itself was treated as temporary.

“I was raised in a home where the religious aspect was major,” he recalls. “Prayer on time, keep it daily, these are the pillars. And then the world and everything else, they were disconnected and different.” The message was clear: fulfill your duties, but do not invest too much thought in why. The system worked, and he moved through it without questioning.

The Opening of Perspective

When Muzamil reached private school around age 16 or 17, his social circles expanded dramatically. He met people from non-religious households, people who thought differently. “A lot of different perspectives started coming in,” he says. These conversations opened his worldview but also created cognitive dissonance. His parents told him not to question, only to follow. Religious scholars had no real answers when pressed.

He moved to America, where the ideological spectrum became visible. Left to right, all political positions were on display. The exposure forced him to think for himself. “My worldview got opened. I was forced to think. I had questions,” he says. But the answers he sought from religious institutions never arrived. Over time, he shifted toward agnosticism.

The Computer Science Breakthrough

The turning point came when Muzamil took a course on genetic algorithms and evolutionary computing. These are algorithms that simulate natural selection, testing thousands of variations to find optimal solutions. You define the problem, seed a population with random variations, run simulations, measure performance, and keep the best performers.

He realized this was how nature works. DNA replicates with variations. Environmental pressures select what survives. Humans, created with free will, generate countless different choices and outcomes.

“When I took this course, it slowly built a framework for me,” he explains. Using this logic, Muzamil began to make sense of faith. If God created humans as an algorithm with free will built in, then spirituality is not opposed to science. It is a description of the same reality using different language. “This thing gave me a logical framework to understand why God would design humans the way He did.”

Organized Religion and Personal Spirituality

Muzamil makes a critical distinction early in his talk. He divides religion and spirituality into two separate concepts. Organized religion is a system with structure, political elements, social dimensions, and cultural layers. Spirituality is a personal relationship with the divine, a belief in God and an understanding of oneself.

He notes that Islam itself manifests differently across regions. In Kazan, Russia, the Islam practiced was vastly different from South Asia because of local history and Soviet influence. But across all these regional variations, individual believers have their own spiritual connection to the creator.

“Organized religion is one thing. Spirituality is another,” he says plainly. “Everyone has their own spiritual relationship with God. Christians, Muslims, many different religions. And everyone has their own spiritual connection with their creator.”

The Broken Lineage

Muzamil makes a historical observation that anchors his thinking. Before colonialism, Islamic scholarship unified knowledge. Scholars studied theology and mathematics and astronomy at the same time. They were both religious and scientific in the same person.

“In the golden age of Islam, the person who was a theologian and believed in religion, he used that same thing to conquer the world, discover things, find answers to the problems of the world,” he explains. But the English came and broke this integration. They separated the scholar from the scientist. From that separation came the false debate: science or religion.

“Since that thing broke, big things have been happening. There is a lot of debate. It seems like you have to choose science or religion, which is a waste of time,” he says.

The Algorithm as Divine Design

The core of Muzamil’s reconceptualization comes from seeing humans as the output of an algorithm. If DNA is a self-replicating algorithm that produces incredible variation and adaptation, and if humans have free will within constraints, then this mirrors evolutionary computation perfectly.

He uses a Mars rover analogy. You cannot know in advance how terrain will behave. So you build a simulator of the environment. You test different rover designs with different wheel sizes, engine power, and body weight. You run simulations and keep the designs that perform best.

“Humans, the greatest of creation, as God has created them. I feel like it was an algorithm. That idea was that you have a thing like this. DNA that replicates itself and they can basically go into a simulation and create incredible value,” he says. This framework let him reconcile faith and doubt.

Faith as Long-Term Optimization

Late in the episode, Muzamil connects this understanding to how to live. Society often rewards short-term gain over integrity. Win fast, get money now, optimize for quarterly results. But his framework teaches him to think in decades.

“Money comes later. What matters is whether my knowledge is growing, whether I am adding positive energy to the world, whether I am making a connection or creating value,” he says. This shift was fundamental. He became patient. He became settled. He started thinking long-term.

He also rejects the popular definition of success. “Many people have an understanding of success and that understanding of success is very meaningless,” he observes. People want money, material status, the markers society has agreed to. Muzamil finds that if you pursue integrity and knowledge, money follows. If you pursue money directly, you may make it but lose yourself.

The Inner Jihad

One of Muzamil’s most powerful insights is that the real struggle is internal, not external. “The biggest war I believe is ego. The greatest jihad is the one you have with yourself,” he says. Society pushes material consumption. Society rewards shortcuts and compromises. The test of spirituality is whether you hold to your principles even when the world says you are foolish.

“When society is saying everyone else is dishonest, you are being naive, everyone is manipulating. Do these things actually work or are you making a wrong decision? But if your foundational principles are right, then you should follow them,” he argues. This is not naive optimism. It is faith that integrity compounds over time.

Holding Hope Through Collective Chaos

The episode touches on the despair that comes from seeing so much injustice and conflict in the world. Muzamil has a response rooted in history and pattern recognition. Humanity has been through world wars, Mongol invasions, countless civilizational collapses. Yet it emerges larger and better.

“Collective humanity always tends toward progress. Collective humanity always moves toward positivity. Collective humanity always aims for improvement,” he states. The individual must hold this hope, not because the world is good right now, but because history shows that humanity ultimately transcends its cycles.

Bridging Science and Spirituality in Dialogue

Muzamil ends by calling for a conversation between the scientific and religious communities. Right now, the split remains. Religious circles discuss only the spiritual. Academic circles discuss only the scientific. Few try to integrate both.

“If you believe that science is a path through which God has already created things, you need to sit down and dissect it. And really try to understand how the world works spiritually and religiously and in a way that aligns with both,” he urges. This is his life’s work now. Not choosing between faith and reason, but learning to speak both languages fluently.

He ends gently, inviting disagreement and further thought. “I would love if people come and tell me their thoughts. If you have counter points, if you have counter thinking, come and tell me,” he says. This is not dogma. It is an invitation to build understanding together, the way scholars once did before the split.

Never miss a conversation.

New episodes and the thinking behind them, straight to your inbox. No hype, no spam, no pitch.

Muzamil Hasan speaking on stage