Short answer
There is something because one being exists that depends on nothing else. Everything we see depends on something. You exist because your parents met, and you stay alive by air, food and the sun. The sun itself burns only while its fuel lasts. Nothing in the world holds the reason for its own existence. A chain of borrowed existence cannot explain itself, however long it runs. An endless line of borrowers is still not a lender. So there must be a being that exists by its own nature, needs nothing and has no parts. Such a being can only be one, since two would need something to tell them apart. The universe cannot be it, because it has parts and it changes. Islam's answer is in one verse of the Qur'an: people need Allah (﷾), and Allah (﷾) needs nothing.
Full explanation
Step one: everything around us is borrowed
A thing is contingent when it depends on something else to exist and might never have existed at all. A person exists because his parents met. He stays alive only because of air, food, water and the warmth of the sun. The sun exists because of hydrogen and gravity. It will burn only while its fuel lasts. Nothing in the world carries the reason for its own existence inside itself. Each thing has its existence on loan. The Qur'an puts three questions to those who deny their Maker. Were they made from nothing? Did they make themselves? Did they make the heavens and the earth?
“Were they created of nothing, or were they themselves the creators? Or did they create the heavens and the earth? Nay, they have no firm belief.”
“O ye men! It is ye that have need of Allah: but Allah is the One Free of all wants, worthy of all praise.”
Step two: a longer chain explains nothing
Picture a line of railway carriages, each pulled by the one in front. Add ten, a thousand, or an endless line. Nothing moves unless there is an engine that pulls without being pulled. Or picture a man who asks a friend for a loan. The friend must first borrow it from a third man, who must borrow it from a fourth. If no one in the line actually has the money, the man is never paid. An endless number of borrowers is still not a lender. So the question "why is there this chain rather than none?" stands, however far back the chain goes.
Divides all that exists into what is only possible in itself (mumkin al-wujud), which needs a cause, and what is necessary in itself (wajib al-wujud), which needs none. Argues that a chain of possible things, however long, needs a necessary being outside it, and that this being is one and has no parts.
Argues that the sufficient reason for the whole series of contingent things must lie outside that series, in a necessary substance, which Leibniz calls God.
Steps three and four: one being that needs nothing
There must be a being that depends on nothing and exists by its own nature. Muslim philosophers called it wajib al-wujud (the being whose existence is necessary). They called everything else mumkin al-wujud (the being whose existence is only possible). The necessary being must need nothing, or it would be one more borrower. It must have no parts, because a thing made of parts depends on its parts. And it can only be one. Two such beings would have to differ in something. Whatever made them differ would be a part or a limit. When the Qur'an speaks of the Face of Allah (﷾), it names an attribute, not a part, for there is nothing like Him.
Divides all that exists into what is only possible in itself (mumkin al-wujud), which needs a cause, and what is necessary in itself (wajib al-wujud), which needs none. Argues that a chain of possible things, however long, needs a necessary being outside it, and that this being is one and has no parts.
“Say: He is Allah, the One and Only; Allah, the Eternal, Absolute; He begetteth not, nor is He begotten; And there is none like unto Him.”
“(He is) the Creator of the heavens and the earth: He has made for you pairs from among yourselves, and pairs among cattle: by this means does He multiply you: there is nothing whatever like unto Him, and He is the One that hears and sees (all things).”
The universe is not the necessary being
Some reply that the universe itself is the thing that needs no cause. It fails every test. It has parts, from galaxies down to atoms, and a thing made of parts depends on them. Some say only its most basic stuff is necessary. That does not help. That stuff comes in a certain amount, obeys certain laws and comes in certain kinds. Each of these could have been different. The universe also changes every moment, and a thing that changes is always receiving something it did not have before. And nothing in it shows that it must exist, or must be the way it is. What exists by necessity cannot fail to exist and cannot be other than it is.
Argues that the sufficient reason for the whole series of contingent things must lie outside that series, in a necessary substance, which Leibniz calls God.
“All that is on earth will perish: But will abide (for ever) the Face of thy Lord,- full of Majesty, Bounty and Honour.”
A Muslim argument the West took up later
The question at its heart is the Qur'an's own: were they made from nothing, or did they make themselves? The argument's classical form was given by Ibn Sina, the Muslim philosopher known in Europe as Avicenna, who died in 1037. He set it out most famously in al-Isharat wa al-Tanbihat (Pointers and Reminders). Thomas Aquinas, a Christian thinker of the thirteenth century, read Avicenna in Latin. He built his Third Way, the third of his five proofs of God (﷾), on the same distinction. In 1714 Leibniz, a German philosopher, argued that the reason for the whole chain of dependent things must lie outside it, in a necessary being. Western textbooks often call it Leibniz's argument. Ibn Sina had set it out nearly seven hundred years before him.
“Were they created of nothing, or were they themselves the creators? Or did they create the heavens and the earth? Nay, they have no firm belief.”
Divides all that exists into what is only possible in itself (mumkin al-wujud), which needs a cause, and what is necessary in itself (wajib al-wujud), which needs none. Argues that a chain of possible things, however long, needs a necessary being outside it, and that this being is one and has no parts.
The third of Aquinas's five ways argues from things that can be and not be to a being that is necessary of itself and receives its existence from nothing else, which all call God. This is the distinction Ibn Sina drew, and Aquinas cites Avicenna often.
Argues that the sufficient reason for the whole series of contingent things must lie outside that series, in a necessary substance, which Leibniz calls God.
The Bible agrees: God (﷾) needs nothing
Paul, a Christian missionary of the first century, told the philosophers of Athens that God (﷾) is not served by human hands. It is not as though He needed anything. He added that God (﷾) gives life and breath to all. The Bible and the Qur'an agree that the Creator needs nothing.
“God that made the world and all things therein, seeing that he is Lord of heaven and earth, dwelleth not in temples made with hands; Neither is worshipped with men’s hands, as though he needed any thing, seeing he giveth to all life, and breath, and all things;”
The necessary being does not get hungry
Paul's words "as though he needed any thing" raise a problem for Christians. The New Testament Gospels show Jesus hungry and asleep. Christians answer that only his human nature hungered. But the creeds say the one who hungered and slept is one person, God the Son. So the person they call God needed food and sleep. Whoever needs anything is a borrower, not the One who needs nothing.
“God that made the world and all things therein, seeing that he is Lord of heaven and earth, dwelleth not in temples made with hands; Neither is worshipped with men’s hands, as though he needed any thing, seeing he giveth to all life, and breath, and all things;”
“Now in the morning as he returned into the city, he hungered.”
“And he was in the hinder part of the ship, asleep on a pillow: and they awake him, and say unto him, Master, carest thou not that we perish?”
The council confessed one and the same Christ in two natures, divine and human, and declared him "not parted or divided into two persons, but one and the same Son".
The Qur'an and the Prophet's (ﷺ) prayer
The Qur'an puts the whole argument into one verse: people stand in need of Allah (﷾), and Allah (﷾) is free of all needs. It calls Him al-Samad (the one all others depend on), and the First and the Last. Two short verses draw the line between the borrowed and the necessary. All that is on earth will perish, and only the Face of the Lord remains. The Prophet (ﷺ) taught Muslims a prayer for each night before sleep. In it they say that Allah (﷾) is the First, with nothing before Him, and the Last, with nothing after Him.
“O ye men! It is ye that have need of Allah: but Allah is the One Free of all wants, worthy of all praise.”
“Say: He is Allah, the One and Only; Allah, the Eternal, Absolute; He begetteth not, nor is He begotten; And there is none like unto Him.”
“He is the First and the Last, the Evident and the Immanent: and He has full knowledge of all things.”
“All that is on earth will perish: But will abide (for ever) the Face of thy Lord,- full of Majesty, Bounty and Honour.”
Abu Hurayra reports a prayer the Prophet (ﷺ) taught for lying down to sleep. In it the believer says to Allah that He is the First, with nothing before Him, and the Last, with nothing after Him; the Evident, with nothing above Him, and the Hidden, with nothing beyond Him.
The objection answered
Hartle and Hawking, Physical Review D (1983)
Proposes the "no-boundary" state of the universe, a model in which time has no first edge. It is a proposal, not an established result.
Cited for
Some physicists propose models in which the universe has no starting point that needs a cause. In the no-boundary proposal of Hartle and Hawking, two physicists, time has no first edge. Others propose a universe with no beginning at all. Either way, they say, nothing outside the universe is needed to explain it.
The response
None of these models is proven. But the argument from contingency does not need the universe to have a beginning. Ibn Sina himself believed the world had no beginning, and al-Ghazali, a later Muslim scholar, attacked him for it. Even so, his argument led him straight to one necessary being who needs nothing. If the chain of causes went back for ever, every link would still be borrowing. The question of why this chain exists rather than none would remain.
Where it lands — Islam holds that the world was created and had a beginning. But even an eternal universe would be borrowed existence, and it would point to the One who needs nothing.
Perspectives
The universe is just there
Some atheists and agnostics say the existence of the universe needs no explanation. In his 1948 debate with Copleston, Bertrand Russell said it is simply there, and that is all.
There is no reason to think the universe as a whole needs a cause or an explanation.
Rebuttal
For no single thing in the universe do we accept that it is simply there, with no explanation. A whole made of dependent parts is no less dependent, so stopping at the universe leaves the question unanswered.
Buddhist: conditions all the way back
Buddhism does not ask why there is anything at all. Things arise from conditions, the round of rebirth has no known beginning, and the Buddha set aside whether the cosmos is eternal.
Everything arises from conditions, in a round with no known beginning. So there is no need for a first source.
Rebuttal
Conditions explain one thing by another, but not why there are conditions at all. A whole made of dependent things, even with no first one, is still dependent. And the Buddha himself spoke of the unconditioned, with no arising and no change, so Buddhism already grants that not everything rests on conditions.
Historical
The argument from contingency took its classical form with Ibn Sina. It passed into Western thought through Aquinas and Leibniz.
Ibn Sina, who died in 1037, set the necessary being apart from the merely possible. Then he argued from one to the other.
Aquinas's Third Way and Leibniz's Monadology, his short book of 1714, argue from dependent things to a necessary being.
Al-Ghazali, a Muslim scholar who died in 1111, attacked Ibn Sina's view that the world has no beginning.
The Islamic perspective
Everything that exists holds its existence on loan, and borrowed existence must come in the end from One who has it by His own nature. That One needs nothing, has no parts and is one. The Qur'an and the Prophet (ﷺ) name Him the First and the Last.
Everything we observe depends on something else for its existence.
A chain of dependent things, even an endless one, cannot explain why the chain exists at all.
So there must be a necessary being that depends on nothing, needs nothing and has no parts.
Two necessary beings would have to differ by a part or a limit, so the necessary being is one.
The universe has parts and changes, and nothing in it makes it exist by necessity. So it is not the necessary being.
The argument from contingency holds whether or not the universe had a beginning.
The New Testament Gospels show Jesus hungry and asleep. The creeds say the one who hungered is one person, God the Son, and whoever needs anything is not the One who needs nothing.
The Qur'an states that people need Allah (﷾) and that Allah (﷾) is free of all needs.
Allah (﷾) is al-Samad, the First and the Last, and everything on earth perishes while He remains.
The Prophet Muhammad (ﷺ) taught a prayer for bedtime. It calls Allah (﷾) the First, with nothing before Him, and the Last, with nothing after Him.