Islam basics

What Muslims believe and do, in a few clear words.

18

What is Islam?

Islam is the religion of submission to the one God. The word means peaceful submission to Allah's will. Muslims believe it is the same message that Allah sent through every prophet, from Adam, Noah, Abraham, Moses and Jesus, peace be upon them, to the last prophet, Muhammad ﷺ.

The fuller answer

What do Muslims believe?

Muslims believe in six things: one God, His angels, His books, His messengers, the Day of Judgment, and that Allah knows and has written all things (divine decree). Together they are called the six articles of faith.

The fuller answer

What are the five pillars of Islam?

The five pillars are the main acts of worship that every Muslim does: the declaration of faith (shahada), the five daily prayers (salah), giving charity (zakat), fasting in Ramadan (sawm) and pilgrimage to Mecca (Hajj) once in a lifetime for those who are able.

The fuller answer

Who is Allah?

Allah is the Arabic name of the one God, the Creator of everything. He is not a different god from the God of Abraham, Moses and Jesus, peace be upon them. Arabic-speaking Christians and Jews also use the word Allah for God.

The fuller answer

What are the 99 names of Allah?

The 99 names of Allah are beautiful names and attributes that Allah uses for Himself in the Quran and through His Prophet ﷺ, such as Ar-Rahman (the Most Gracious), Ar-Rahim (the Most Merciful), Al-Ghafur (the Forgiving), Al-'Adl (the Just) and Al-Wadud (the Loving).

The fuller answer

How is Islam different from Christianity and Judaism?

All three believe in one God and trace their faith to Abraham, peace be upon him, so they are called Abrahamic religions. Islam differs from Christianity mainly in that it does not believe in the Trinity or that Jesus is God or the son of God, and from Judaism in that it accepts Jesus and Muhammad ﷺ as prophets.

The fuller answer

Who are Muslims, and where do they live?

Muslims are the followers of Islam. There are about two billion of them, around a quarter of the world's population, and they live on every continent. Only about one in five Muslims is Arab.

The country with the most Muslims is Indonesia, followed by Pakistan, India and Bangladesh. Large Muslim communities live in Nigeria, Egypt, Türkiye, Iran, China, Russia, Europe and the Americas. Muslims come from every colour, language and culture, and are rich and poor, educated and uneducated, like any other people.

What unites them is the belief in one God, the Quran, the Prophet Muhammad ﷺ and the main acts of worship. Customs, food and clothing differ widely from country to country, and many of those customs come from local culture and not from the religion itself.

From the Quran

يَٰٓأَيُّهَا ٱلنَّاسُ إِنَّا خَلَقْنَٰكُم مِّن ذَكَرٍۢ وَأُنثَىٰ وَجَعَلْنَٰكُمْ شُعُوبًۭا وَقَبَآئِلَ لِتَعَارَفُوٓا۟ ۚ إِنَّ أَكْرَمَكُمْ عِندَ ٱللَّهِ أَتْقَىٰكُمْ ۚ إِنَّ ٱللَّهَ عَلِيمٌ خَبِيرٌۭ ﴿١٣﴾

O mankind! Lo! We have created you male and female, and have made you nations and tribes that ye may know one another. Lo! the noblest of you, in the sight of Allah, is the best in conduct. Lo! Allah is Knower, Aware.

Al-Hujurat 49:13

What is the difference between Islam and Muslim?

Islam is the religion, and a Muslim is a person who follows it. In Arabic, Islam means submission to Allah and a Muslim means one who submits.

The two words come from the same root, s-l-m, which also gives the word salam, peace. Because of this, Muslims say that Islam means finding peace through submitting to Allah's will, and the greeting between Muslims is 'peace be upon you'.

It is better to say 'Muslim' and not 'Mohammedan' for a follower. Muslims do not follow Muhammad ﷺ as a god or the founder of a new religion. They follow Allah, and Muhammad ﷺ was His final messenger.

What is the Quran, in simple words?

The Quran is the holy book of Islam. Muslims believe it is the word of Allah, revealed to Prophet Muhammad ﷺ through the angel Gabriel over about 23 years, and that it has been preserved without change in its original Arabic.

The fuller answer

What does 'Allahu Akbar' mean?

Allahu akbar means 'Allah is greater': greater than everything else we might care about, fear or admire. Muslims say it in the call to prayer, in the movements of prayer, on Eid, and in moments of awe or joy. It is a phrase of worship, not a war cry, and violent people who shout it do not represent Islam.

The fuller answer

What are the holy places of Islam: Mecca, Medina and Jerusalem?

Islam's three holiest mosques are the Sacred Mosque in Mecca around the Kaaba, the Prophet's Mosque in Medina and the Al-Aqsa Mosque in Jerusalem. The Prophet ﷺ said that a special journey should be made only to these three. Muslims honour these places, but they worship Allah alone.

Mecca is the holiest. The Quran says that the first house of worship appointed for mankind was the one at Becca, which is Mecca, and that Abraham and Ishmael, peace be upon them, raised the foundations of the House. The Kaaba is the direction that Muslims face in prayer, and Hajj is made there. The Prophet ﷺ said that the first mosque placed on earth was the Sacred Mosque, then the Al-Aqsa, with forty years between them. Today the sacred area of Mecca is reserved for Muslims, a rule that most scholars base on the Quran's instruction that idolaters should not approach the Sacred Mosque.

Medina is the city to which the Prophet ﷺ migrated and where he is buried. His mosque there is the second holiest, and he declared Medina a sanctuary in which trees are not cut and wrongdoing is forbidden. Jerusalem is home to the Al-Aqsa Mosque, the 'farthest mosque', to which the Quran says Allah carried the Prophet ﷺ by night. It was also the first direction of prayer: the Prophet ﷺ and his companions prayed toward it for sixteen or seventeen months before the direction was changed to the Kaaba.

Jerusalem is also holy to Jews and Christians, and is associated with prophets whom Muslims honour, such as David, Solomon and Jesus. The Prophet ﷺ said that one should not set out on a special journey except to three mosques: the Sacred Mosque, his own mosque and Al-Aqsa. Yet none of these places is worshipped, and a Muslim may pray anywhere on earth, since the Prophet ﷺ said that wherever the time of prayer finds you, you may pray, for the place is a mosque.

From the Quran

إِنَّ أَوَّلَ بَيْتٍۢ وُضِعَ لِلنَّاسِ لَلَّذِى بِبَكَّةَ مُبَارَكًۭا وَهُدًۭى لِّلْعَٰلَمِينَ ﴿٩٦﴾

Lo! the first Sanctuary appointed for mankind was that at Becca, a blessed place, a guidance to the peoples;

Ali 'Imran 3:96

وَإِذْ جَعَلْنَا ٱلْبَيْتَ مَثَابَةًۭ لِّلنَّاسِ وَأَمْنًۭا وَٱتَّخِذُوا۟ مِن مَّقَامِ إِبْرَٰهِۦمَ مُصَلًّۭى ۖ وَعَهِدْنَآ إِلَىٰٓ إِبْرَٰهِۦمَ وَإِسْمَٰعِيلَ أَن طَهِّرَا بَيْتِىَ لِلطَّآئِفِينَ وَٱلْعَٰكِفِينَ وَٱلرُّكَّعِ ٱلسُّجُودِ ﴿١٢٥﴾ وَإِذْ قَالَ إِبْرَٰهِۦمُ رَبِّ ٱجْعَلْ هَٰذَا بَلَدًا ءَامِنًۭا وَٱرْزُقْ أَهْلَهُۥ مِنَ ٱلثَّمَرَٰتِ مَنْ ءَامَنَ مِنْهُم بِٱللَّهِ وَٱلْيَوْمِ ٱلْءَاخِرِ ۖ قَالَ وَمَن كَفَرَ فَأُمَتِّعُهُۥ قَلِيلًۭا ثُمَّ أَضْطَرُّهُۥٓ إِلَىٰ عَذَابِ ٱلنَّارِ ۖ وَبِئْسَ ٱلْمَصِيرُ ﴿١٢٦﴾ وَإِذْ يَرْفَعُ إِبْرَٰهِۦمُ ٱلْقَوَاعِدَ مِنَ ٱلْبَيْتِ وَإِسْمَٰعِيلُ رَبَّنَا تَقَبَّلْ مِنَّآ ۖ إِنَّكَ أَنتَ ٱلسَّمِيعُ ٱلْعَلِيمُ ﴿١٢٧﴾

And when We made the House (at Makka) a resort for mankind and sanctuary, (saying): Take as your place of worship the place where Abraham stood (to pray). And We imposed a duty upon Abraham and Ishmael, (saying): Purify My house for those who go around and those who meditate therein and those who bow down and prostrate themselves (in worship). And when Abraham prayed: My Lord! Make this a region of security and bestow upon its people fruits, such of them as believe in Allah and the Last Day, He answered: As for him who disbelieveth, I shall leave him in contentment for a while, then I shall compel him to the doom of Fire - a hapless journey's end! And when Abraham and Ishmael were raising the foundations of the House, (Abraham prayed): Our Lord! Accept from us (this duty). Lo! Thou, only Thou, art the Hearer, the Knower.

Al-Baqarah 2:125–127

سُبْحَٰنَ ٱلَّذِىٓ أَسْرَىٰ بِعَبْدِهِۦ لَيْلًۭا مِّنَ ٱلْمَسْجِدِ ٱلْحَرَامِ إِلَى ٱلْمَسْجِدِ ٱلْأَقْصَا ٱلَّذِى بَٰرَكْنَا حَوْلَهُۥ لِنُرِيَهُۥ مِنْ ءَايَٰتِنَآ ۚ إِنَّهُۥ هُوَ ٱلسَّمِيعُ ٱلْبَصِيرُ ﴿١﴾

Glorified be He Who carried His servant by night from the Inviolable Place of Worship to the Far distant place of worship the neighbourhood whereof We have blessed, that We might show him of Our tokens! Lo! He, only He, is the Hearer, the Seer.

Al-Isra 17:1

قَدْ نَرَىٰ تَقَلُّبَ وَجْهِكَ فِى ٱلسَّمَآءِ ۖ فَلَنُوَلِّيَنَّكَ قِبْلَةًۭ تَرْضَىٰهَا ۚ فَوَلِّ وَجْهَكَ شَطْرَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۚ وَحَيْثُ مَا كُنتُمْ فَوَلُّوا۟ وُجُوهَكُمْ شَطْرَهُۥ ۗ وَإِنَّ ٱلَّذِينَ أُوتُوا۟ ٱلْكِتَٰبَ لَيَعْلَمُونَ أَنَّهُ ٱلْحَقُّ مِن رَّبِّهِمْ ۗ وَمَا ٱللَّهُ بِغَٰفِلٍ عَمَّا يَعْمَلُونَ ﴿١٤٤﴾

We have seen the turning of thy face to heaven (for guidance, O Muhammad). And now verily We shall make thee turn (in prayer) toward a qiblah which is dear to thee. So turn thy face toward the Inviolable Place of Worship, and ye (O Muslims), wheresoever ye may be, turn your faces (when ye pray) toward it. Lo! Those who have received the Scripture know that (this revelation) is the Truth from their Lord. And Allah is not unaware of what they do.

Al-Baqarah 2:144

يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوٓا۟ إِنَّمَا ٱلْمُشْرِكُونَ نَجَسٌۭ فَلَا يَقْرَبُوا۟ ٱلْمَسْجِدَ ٱلْحَرَامَ بَعْدَ عَامِهِمْ هَٰذَا ۚ وَإِنْ خِفْتُمْ عَيْلَةًۭ فَسَوْفَ يُغْنِيكُمُ ٱللَّهُ مِن فَضْلِهِۦٓ إِن شَآءَ ۚ إِنَّ ٱللَّهَ عَلِيمٌ حَكِيمٌۭ ﴿٢٨﴾

O ye who believe! The idolaters only are unclean. So let them not come near the Inviolable Place of Worship after this their year. If ye fear poverty (from the loss of their merchandise) Allah shall preserve you of His bounty if He will. Lo! Allah is Knower, Wise.

At-Tawbah 9:28

What does 'ummah' mean? Are all Muslims one community?

Ummah means community or nation, and in Islam it means the worldwide community of Muslims, joined by faith rather than by race, country or language. The Quran calls the believers brothers and sisters, and the Prophet ﷺ compared them to one body. In practice the ummah has many peoples, schools of thought and disagreements.

The fuller answer

What does a typical day in a practising Muslim's life look like?

It is built around the five daily prayers: before sunrise, midday, afternoon, sunset and night, each taking only minutes. In between, a Muslim works, studies and cares for family, and tries to begin tasks with Allah's name. The Prophet ﷺ said that prayer at its proper time is among the most beloved deeds to Allah.

The day begins before sunrise with the dawn prayer (fajr), after washing for prayer (wudu). Many Muslims then read a little Quran. Work or school fills the morning, and the midday prayer (dhuhr) and the afternoon prayer (asr) are fitted into breaks, often in a prayer room or a quiet corner. The sunset prayer (maghrib) comes just after sunset, which is also when a fasting person breaks the fast, and the night prayer (isha) closes the day. The Quran says that prayer is enjoined at fixed times, and tells believers to keep it at the two ends of the day and in some watches of the night.

Between prayers, life is ordinary: working, studying, shopping, cooking, being with children and friends. A Muslim tries to begin with 'bismillah', to eat halal food, to avoid lying and backbiting, and to treat others fairly. The Prophet ﷺ was asked which deed is most beloved to Allah, and answered: prayer at its proper time, then kindness to parents, then striving in the way of Allah. His wife Aisha reported that at home he used to help with the work of the household, and when the time for prayer came, he went out to pray.

Friday has a congregational prayer at midday, and Ramadan changes the rhythm of a whole month, with fasting by day and extra prayers at night. Not every Muslim is equally observant: some pray all five prayers, others fewer, and Islam teaches that the effort is between a person and Allah. Many who practise say that the prayers give the day a structure of pauses and a feeling of being accompanied. The related answers explain each practice in more detail.

From the Quran

فَإِذَا قَضَيْتُمُ ٱلصَّلَوٰةَ فَٱذْكُرُوا۟ ٱللَّهَ قِيَٰمًۭا وَقُعُودًۭا وَعَلَىٰ جُنُوبِكُمْ ۚ فَإِذَا ٱطْمَأْنَنتُمْ فَأَقِيمُوا۟ ٱلصَّلَوٰةَ ۚ إِنَّ ٱلصَّلَوٰةَ كَانَتْ عَلَى ٱلْمُؤْمِنِينَ كِتَٰبًۭا مَّوْقُوتًۭا ﴿١٠٣﴾

When ye have performed the act of worship, remember Allah, standing, sitting and reclining. And when ye are in safety, observe proper worship. Worship at fixed times hath been enjoined on the believers.

An-Nisa 4:103

وَأَقِمِ ٱلصَّلَوٰةَ طَرَفَىِ ٱلنَّهَارِ وَزُلَفًۭا مِّنَ ٱلَّيْلِ ۚ إِنَّ ٱلْحَسَنَٰتِ يُذْهِبْنَ ٱلسَّيِّـَٔاتِ ۚ ذَٰلِكَ ذِكْرَىٰ لِلذَّٰكِرِينَ ﴿١١٤﴾

Establish worship at the two ends of the day and in some watches of the night. Lo! good deeds annul ill-deeds. This is reminder for the mindful.

Hud 11:114

What is the difference between Islam, iman and ihsan?

Islam is the outward acts of submission: the shahada, prayer, charity, fasting and pilgrimage. Iman is faith in the heart: believing in Allah, His angels, books, messengers, the Last Day and destiny. Ihsan is excellence: worshipping Allah as though you see Him. In the hadith of Gabriel, the Prophet ﷺ taught them as three levels of one religion.

In a famous hadith in Sahih Muslim, Umar tells how a man in very white clothes and with very black hair, with no sign of travel on him, whom none of the companions knew, sat down very close to the Prophet ﷺ and asked him questions. The Prophet ﷺ answered that Islam is to testify that there is no god but Allah and that Muhammad is the Messenger of Allah, to establish the prayer, to give the zakat, to fast Ramadan and to make the pilgrimage to the House if you are able. Iman is to believe in Allah, His angels, His books, His messengers and the Last Day, and to believe in destiny, its good and its bad. And ihsan is to worship Allah as though you see Him, for if you do not see Him, He sees you. Afterwards the Prophet ﷺ told Umar that the man was Gabriel, who had come to teach them their religion.

Scholars explain the three as levels or dimensions of one religion. Islam is what a person does, iman is what a person believes, and ihsan is how present and sincere the person is in doing it. They are not three separate religions. Prayer without belief is an empty motion, belief without action is incomplete, and both are meant to lead to a heart that is truly aware of Allah. The version of the same hadith in Bukhari words the answers a little differently, but it gives the same three questions and the same answer about ihsan.

The distinction also explains a verse of the Quran in which some desert Arabs said, we believe. The Quran told the Prophet ﷺ to say to them: you have not believed, but say, we have submitted, for faith has not yet entered your hearts. They had taken the outward step, and faith was still to grow. This is why Muslims speak of faith that rises and falls, and why even a committed Muslim is always working on all three: acting, believing more deeply and worshipping with a more present heart.

From the Quran

۞ قَالَتِ ٱلْأَعْرَابُ ءَامَنَّا ۖ قُل لَّمْ تُؤْمِنُوا۟ وَلَٰكِن قُولُوٓا۟ أَسْلَمْنَا وَلَمَّا يَدْخُلِ ٱلْإِيمَٰنُ فِى قُلُوبِكُمْ ۖ وَإِن تُطِيعُوا۟ ٱللَّهَ وَرَسُولَهُۥ لَا يَلِتْكُم مِّنْ أَعْمَٰلِكُمْ شَيْـًٔا ۚ إِنَّ ٱللَّهَ غَفُورٌۭ رَّحِيمٌ ﴿١٤﴾

The wandering Arabs say: We believe. Say (unto them, O Muhammad): Ye believe not, but rather say "We submit," for the faith hath not yet entered into your hearts. Yet, if ye obey Allah and His messenger, He will not withhold from you aught of (the reward of) your deeds. Lo! Allah is Forgiving, Merciful.

Al-Hujurat 49:14

۞ لَّيْسَ ٱلْبِرَّ أَن تُوَلُّوا۟ وُجُوهَكُمْ قِبَلَ ٱلْمَشْرِقِ وَٱلْمَغْرِبِ وَلَٰكِنَّ ٱلْبِرَّ مَنْ ءَامَنَ بِٱللَّهِ وَٱلْيَوْمِ ٱلْءَاخِرِ وَٱلْمَلَٰٓئِكَةِ وَٱلْكِتَٰبِ وَٱلنَّبِيِّۦنَ وَءَاتَى ٱلْمَالَ عَلَىٰ حُبِّهِۦ ذَوِى ٱلْقُرْبَىٰ وَٱلْيَتَٰمَىٰ وَٱلْمَسَٰكِينَ وَٱبْنَ ٱلسَّبِيلِ وَٱلسَّآئِلِينَ وَفِى ٱلرِّقَابِ وَأَقَامَ ٱلصَّلَوٰةَ وَءَاتَى ٱلزَّكَوٰةَ وَٱلْمُوفُونَ بِعَهْدِهِمْ إِذَا عَٰهَدُوا۟ ۖ وَٱلصَّٰبِرِينَ فِى ٱلْبَأْسَآءِ وَٱلضَّرَّآءِ وَحِينَ ٱلْبَأْسِ ۗ أُو۟لَٰٓئِكَ ٱلَّذِينَ صَدَقُوا۟ ۖ وَأُو۟لَٰٓئِكَ هُمُ ٱلْمُتَّقُونَ ﴿١٧٧﴾

It is not righteousness that ye turn your faces to the East and the West; but righteous is he who believeth in Allah and the Last Day and the angels and the Scripture and the prophets; and giveth wealth, for love of Him, to kinsfolk and to orphans and the needy and the wayfarer and to those who ask, and to set slaves free; and observeth proper worship and payeth the poor-due. And those who keep their treaty when they make one, and the patient in tribulation and adversity and time of stress. Such are they who are sincere. Such are the Allah-fearing.

Al-Baqarah 2:177

What happens at a Muslim funeral, and why are Muslims buried so soon?

Muslim funerals are simple. The body is washed, wrapped in plain white cloth, prayed over by the community in a short prayer, and buried in the earth as soon as practical, without cremation. The Prophet ﷺ told Muslims to hasten the funeral. Grief is natural and allowed: the Prophet ﷺ wept when his young son died.

The body is first washed with respect, usually by family members or trained volunteers of the same sex. When the Prophet's ﷺ daughter died, he told the women who were washing her to wash her three times, or five, or more if they saw the need, with water and lote-tree leaves, and to put some camphor in the last washing. The body is then wrapped in plain white cloth. There are no expensive coffins or clothes, so rich and poor are buried alike, in line with the idea that every soul returns to Allah in the same way.

Then comes the funeral prayer. The community stands in rows, facing Mecca, and the prayer is said standing, with no bowing or prostration, and with four takbirs, that is, four times saying Allahu akbar (the number of takbirs is reported in a hadith in Bukhari, and the other details are the long-established practice). In Bukhari, when the Prophet ﷺ announced the death of the king of Abyssinia, he went out to the prayer ground, arranged the people in rows and said the takbir four times. By established practice the prayer includes praise of Allah, a blessing on the Prophet ﷺ and a dua for the dead person and for the living, with small differences between the schools of law. It is a communal duty, so if enough people attend, it is fulfilled for the whole community.

The Prophet ﷺ said: hasten with the funeral. If the person was righteous, you are bringing him quickly to something good, and if he was otherwise, it is an evil you are putting down from your necks. For this reason burial often takes place within a day or two, though delays for family to travel or for legal needs are common. Muslims bury their dead in the ground, usually with the body turned towards Mecca, and do not cremate, following the practice handed down from the Prophet's ﷺ time. Mourners may cry. When the Prophet's ﷺ son Ibrahim, peace be upon him, was dying, his eyes shed tears, and he said that the eyes shed tears and the heart grieves, and we say only what pleases our Lord, and that we are truly sad at parting. Visitors usually say, we belong to Allah and to Him we return, and they bring food and company to the family.

From the Quran

ٱلَّذِينَ إِذَآ أَصَٰبَتْهُم مُّصِيبَةٌۭ قَالُوٓا۟ إِنَّا لِلَّهِ وَإِنَّآ إِلَيْهِ رَٰجِعُونَ ﴿١٥٦﴾

Who say, when a misfortune striketh them: Lo! we are Allah's and lo! unto Him we are returning.

Al-Baqarah 2:156

كُلُّ نَفْسٍۢ ذَآئِقَةُ ٱلْمَوْتِ ۗ وَإِنَّمَا تُوَفَّوْنَ أُجُورَكُمْ يَوْمَ ٱلْقِيَٰمَةِ ۖ فَمَن زُحْزِحَ عَنِ ٱلنَّارِ وَأُدْخِلَ ٱلْجَنَّةَ فَقَدْ فَازَ ۗ وَمَا ٱلْحَيَوٰةُ ٱلدُّنْيَآ إِلَّا مَتَٰعُ ٱلْغُرُورِ ﴿١٨٥﴾

Every soul will taste of death. And ye will be paid on the Day of Resurrection only that which ye have fairly earned. Whoso is removed from the Fire and is made to enter paradise, he indeed is triumphant. The life of this world is but comfort of illusion.

Ali 'Imran 3:185

What is intention (niyyah) in Islam, and why does it matter?

Intention is the sincere purpose in your heart behind an action, ideally to please Allah. The Prophet ﷺ said that deeds are judged by intentions and that each person will have what he intended. The same act, such as giving money, can be worship or just show, depending on why it is done.

The first hadith in Sahih al-Bukhari is about intention. Umar reported from the pulpit that he heard the Prophet ﷺ say: actions are only by intentions, and every person will have only what he intended. So whoever migrated for Allah and His Messenger, his migration is for Allah and His Messenger, and whoever migrated for worldly gain or to marry a woman, his migration is for what he migrated for. Scholars have long called this hadith one of the foundations of the religion, because it shows that Islam looks at the heart and not only at what can be seen.

The Quran says the same in other words. People are commanded only to serve Allah, keeping their religion pure for Him. About the sacrifice at the pilgrimage it says that neither the flesh nor the blood reaches Allah, but the devotion from you reaches Him. And it teaches Muslims to say: my prayer, my sacrifice, my living and my dying are for Allah, Lord of the Worlds. Intention is what turns a habit into worship. The Prophet ﷺ told Sa'd that whatever he spends seeking the face of Allah, he will be rewarded for, even the morsel he puts in his wife's mouth. Work done honestly to support a family and other everyday acts of kindness can all be acts of worship when they are done with the right intention.

Intention also shows Allah's mercy. In a divine saying, Allah says that whoever intends a good deed and does not do it, Allah records it as one complete good deed, and if he does it, Allah records it as ten, up to seven hundred times, or more. Whoever intends a wrong deed and does not do it, Allah records it as a complete good deed, while if he does it, only one wrong is recorded. But intention has limits: a good intention does not make a forbidden act allowed. The intention is a decision of the heart and needs no special words, so there is nothing to recite. If you notice your motives are mixed, which happens to everyone, the answer is to renew your sincerity, not to give up.

From the Quran

وَمَآ أُمِرُوٓا۟ إِلَّا لِيَعْبُدُوا۟ ٱللَّهَ مُخْلِصِينَ لَهُ ٱلدِّينَ حُنَفَآءَ وَيُقِيمُوا۟ ٱلصَّلَوٰةَ وَيُؤْتُوا۟ ٱلزَّكَوٰةَ ۚ وَذَٰلِكَ دِينُ ٱلْقَيِّمَةِ ﴿٥﴾

And they are ordered naught else than to serve Allah, keeping religion pure for Him, as men by nature upright, and to establish worship and to pay the poor-due. That is true religion.

Al-Bayyinah 98:5

لَن يَنَالَ ٱللَّهَ لُحُومُهَا وَلَا دِمَآؤُهَا وَلَٰكِن يَنَالُهُ ٱلتَّقْوَىٰ مِنكُمْ ۚ كَذَٰلِكَ سَخَّرَهَا لَكُمْ لِتُكَبِّرُوا۟ ٱللَّهَ عَلَىٰ مَا هَدَىٰكُمْ ۗ وَبَشِّرِ ٱلْمُحْسِنِينَ ﴿٣٧﴾

Their flesh and their food reach not Allah, but the devotion from you reacheth Him. Thus have We made them subject unto you that ye may magnify Allah that He hath guided you. And give good tidings (O Muhammad) to the good.

Al-Hajj 22:37

قُلْ إِنَّ صَلَاتِى وَنُسُكِى وَمَحْيَاىَ وَمَمَاتِى لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ ﴿١٦٢﴾ لَا شَرِيكَ لَهُۥ ۖ وَبِذَٰلِكَ أُمِرْتُ وَأَنَا۠ أَوَّلُ ٱلْمُسْلِمِينَ ﴿١٦٣﴾

Say: Lo! my worship and my sacrifice and my living and my dying are for Allah, Lord of the Worlds. He hath no partner. This am I commanded, and I am first of those who surrender (unto Him).

Al-An'am 6:162–163

What is a mosque, and what are the mihrab, minbar and minaret for?

A mosque, or masjid, meaning place of prostration, is where Muslims pray together and gather as a community. It needs no priest or altar. Its common features are practical: a mihrab niche that shows the direction of Mecca, a minbar for the Friday sermon, a minaret for the call to prayer, and a place for washing. The Prophet's first mosque was simple, with palm trunks and stones.

The fuller answer

Why Islam? Evidence and truthWhy Islam came, why Muslims believe it is true and what draws people to it.Knowing AllahWho Allah is, His names and His mercy, and how a person gets close to Him.God, Jesus and other faithsHow Islam sees God, Jesus, Christians, Jews and other religions.Islam and other religionsHow Islam compares with Christianity, Judaism, Hinduism, Buddhism and having no religion.Prophet Muhammad ﷺHis life, his character and the proofs of his prophethood.The Quran: preservation, wisdom and readingHow the Quran was kept, what it says and how to start reading it.The Quran and the ProphetThe Quran, the hadith and the life of Prophet Muhammad ﷺ.Purpose of life and meaningWhy we are here, peace of mind, gratitude, patience and hope.Doubts, atheism and hard questionsSuffering, the existence of God, doubt and the questions that are hardest to answer.Becoming MuslimHow a person accepts Islam and what happens next.New to Islam: first stepsWhat to do first, how to learn step by step and how to live your new faith.Learning to prayWudu, the steps of the prayer and what to say, for beginners.Prayer, fasting, Hajj and worshipWhat Muslims do in worship and why.Ramadan, Eid and HajjWhy Muslims fast, celebrate and travel to Mecca.Women, family and marriageHijab, rights, marriage, divorce and the family.Hijab, modesty and clothingWhy Muslims dress modestly, what hijab is and is not, and the choice behind it.Parents, children and family lifeHonouring parents, raising children and living with relatives.Peace, war, jihad and violenceWhat Islam teaches about fighting, terrorism and the rights of others.Sharia, rights and societyIslamic law, punishments, freedom, slavery and what is allowed or not.Life, death and the afterlifeHeaven, hell, angels, fate, suffering and the purpose of life.Sin, repentance and hopeForgiveness, starting again and the mercy of Allah.Science, reason and doubtIslam, evolution, the universe and the evidence for God.Halal food, money and workWhat is halal and haram, and how Muslims earn, spend and give.Good character and ethicsHonesty, kindness, justice and how Muslims are asked to treat people, animals and the earth.Islam and modern lifeMusic, social media, relationships, health and other questions of today.History, sects and Muslims todaySunni and Shia, the spread of Islam and the Muslim world.Living and working with MuslimsPractical questions from friends, neighbours and colleagues.Common mythsThings people hear about Islam that are not true.