Say (O Muhammad SAW): My Lord has commanded justice and (said) that you should face Him only (i.e. worship none but Allah and face the Qiblah, i.e. the Ka’bah at Makkah during prayers) in each and every place of worship, in prayers (and not to face other false deities and idols), and invoke Him only making your religion sincere to Him by not joining in worship any partner to Him and with the intention that you are doing your deeds for Allah’s sake only. As He brought you (into being) in the beginning, so shall you be brought into being (on the Day of Resurrection) [in two groups, one as a blessed one (believers), and the other as a wretched one (disbelievers)].
Chapter 7 Al-A‘rāf : Verse 29
Allah orders Justice and Sincerity
(Say: “My Lord has commanded justice, (fairness and honesty)”),
(“And that you should face Him only, in every Masjid, and invoke Him only making your religion sincere to Him…”) This Ayah means, Allah commands you to be straightforward in worshipping Him, by following the Messengers who were supported with miracles and obeying what they conveyed from Allah and the Law that they brought. He also commands sincerity in worshipping Him, for He, Exalted He is, does not accept a good deed until it satisfies these two conditions: being correct and in conformity with His Law, and being free of Shirk.
(As He brought you in the beginning, so shall you be brought into being again.) Ibn Abi Najih said that Mujahid said that it means, “He will bring you back to life after you die.” Al-Hasan Al-Basri commented, “As He made you begin in this life, He will bring you back to life on the Day of Resurrection.” Qatadah commented on:
(As He brought you in the beginning, so shall you be brought into being again.) “He started their creation after they were nothing, and they perished later on, and He shall bring them back again.” `Abdur-Rahman bin Zayd bin Aslam said, “As He created you in the beginning, He will bring you back in the end.” This last explanation was preferred by Abu Ja`far Ibn Jarir and he supported it with what he reported from Ibn `Abbas, “The Messenger of Allah stood up and gave us a speech, saying,
(O people! You will be gathered to Allah while barefooted, naked and uncircumcised, (As We began the first creation, We shall repeat it. (It is) a promise binding upon Us. Truly, We shall do it)).(21:104) This Hadith was collected in the Two Sahihs. `Ali bin Abi Talhah reported that Ibn `Abbas commented on the Ayah,
(As He brought you in the beginning, so shall you be brought into being again. A group He has guided, and a group deserved to be in error;) “Allah, the Exalted, began the creation of the Sons of Adam, some believers and some disbelievers, just as He said,
(He it is Who created you, then some of you are disbelievers and some of you are believers) ﴿64:2﴾. He will then return them on the Day of Resurrection as He started them, some believers and some disbelievers. I say, what supports this meaning, is the Hadith from Ibn Mas`ud that Al-Bukhari recorded, (that the Prophet said:)
(By He, other than Whom there is no god, one of you might perform the deeds of the people of Paradise until only the length of an arm or a forearm would separate him from it. However, that which was written in the Book takes precedence, and he commits the work of the people of the Fire and thus enters it. And one of you might perform the deeds of the people of the Fire until only the length of an arm or a forearm separates between him and the Fire. However, that which was written in the Book takes precedence, and he performs the work of the people of Paradise and thus enters Paradise.) We should combine this meaning — if it is held to be the correct meaning for the Ayah — with Allah’s statement:
(So set you your face towards the religion, Hanifan. Allah’s Fitrah with which He has created mankind) (30:30), and what is recorded in the Two Sahihs from Abu Hurayrah who said that the Messenger of Allah said:
(Every child is born upon the Fitrah, it is only his parents who turn him into a Jew, a Christian or a Zoroastrian.) Muslim recorded that `Iyad bin Himar said that the Messenger of Allah said,
(Allah said, `I created My servants Hunafa’ (monotheists), but the devils came to them and deviated them from their religion.) The collective meaning here is, Allah created His creatures so that some of them later turn believers and some turn disbelievers. Allah has originally created all of His servants able to recognize Him, to single Him out in worship, and know that there is no deity worthy of worship except Him. He also took their covenant to fulfill the implications of this knowledge, which He placed in their consciousness and souls. He has decided that some of them will be miserable and some will be happy.
(He it is Who created you, then some of you are disbelievers and some of you are believers) (64:2).