This Ayah contains many great wisdoms, encompassing rulings and correct beliefs.
As for the explanation of this Ayah, Allah first commanded the believers to face Bayt Al-Maqdis, and then to face the Ka`bah during the prayer. This change was difficult for some of the People of the Book, and even for some Muslims. Then Allah sent revelation which clarified the wisdom behind this command, that is, obedience to Allah, adhering to His commands, facing wherever He commands facing, and implementing whatever He legislates, that is the objective. This is Birr, Taqwa and complete faith. Facing the east or the west does not necessitate righteousness or obedience, unless it is legislated by Allah. This is why Allah said:
﴿ لَّيۡسَ ٱلۡبِرَّ أَن تُوَلُّواْ وُجُوهَكُمۡ قِبَلَ ٱلۡمَشۡرِقِ وَٱلۡمَغۡرِبِ وَلَـٰكِنَّ ٱلۡبِرَّ مَنۡ ءَامَنَ بِٱللَّهِ وَٱلۡيَوۡمِ ٱلۡأَخِرِ ﴾
(It is not Birr that you turn your faces towards east and (or) west (in prayers); but Birr is the one who believes in Allah and the Last Day,)
Similarly, Allah said about the sacrifices:
﴿ لَن يَنَالَ ٱللَّهَ لُحُومُهَا وَلَا دِمَآؤُهَا وَلَـٰكِن يَنَالُهُ ٱلتَّقۡوَىٰ مِنكُمۡۚ ﴾
(It is neither their meat nor their blood that reaches Allah, but it is the piety from you that reaches Him.) (22:37)
Abu Al-`Aliyah said, "The Jews used to face the west for their Qiblah, while the Christians used to face the east for their Qiblah. So Allah said:
﴿ لَّيۡسَ ٱلۡبِرَّ أَن تُوَلُّواْ وُجُوهَكُمۡ قِبَلَ ٱلۡمَشۡرِقِ وَٱلۡمَغۡرِبِ ﴾
(It is not Birr that you turn your faces towards east and (or) west (in prayers)) (2: 177) meaning, "this is faith, and its essence requires implementation.'' Similar was reported from Al-Hasan and Ar-Rabi` bin Anas. Ath-Thawri recited:
﴿ وَلَـٰكِنَّ ٱلۡبِرَّ مَنۡ ءَامَنَ بِٱللَّهِ ﴾
(but Birr is the one who believes in Allah,) and said that what follows are the types of Birr. He has said the truth. Certainly, those who acquire the qualities mentioned in the Ayah will have indeed embraced all aspects of Islam and implemented all types of righteousness; believing in Allah, that He is the only God worthy of worship, and believing in the angels the emissaries between Allah and His Messengers.
The `Books' are the Divinely revealed Books from Allah to the Prophets, which were finalized by the most honorable Book (the Qur'an). The Qur'an supercedes all previous Books, it mentions all types of righteousness, and the way to happiness in this life and the Hereafter. The Qur'an abrogates all previous Books and testifies to all of Allah's Prophets, from the first Prophet to the Final Prophet, Muhammad, may Allah's peace and blessings be upon them all.
﴿ وَءَاتَى ٱلۡمَالَ عَلَىٰ حُبِّهِۦ ﴾
(...and gives his wealth, in spite of love for it,) refers to those who give money away while desiring it and loving it. It is recorded in the Sahihayn that Abu Hurayrah narrated that the Prophet said:
« أَفْضَلُ الصَّدَقةِ أَنْ تَصَدَّقَ وَأَنْتَ صَحِيحٌ شَحِيحٌ، تَأْمُلُ الْغِنَى وتَخْشَى الْفقْر »
(The best charity is when you give it away while still healthy and thrifty, hoping to get rich and fearing poverty.)
﴿ وَيُطۡعِمُونَ ٱلطَّعَامَ عَلَىٰ حُبِّهِۦ مِسۡكِينً۬ا وَيَتِيمً۬ا وَأَسِيرًا • إِنَّمَا نُطۡعِمُكُمۡ لِوَجۡهِ ٱللَّهِ لَا نُرِيدُ مِنكُمۡ جَزَآءً۬ وَلَا شُكُورًا ﴾
(And they give food, in spite of their love for it, to the Miskin (the poor), the orphan, and the captive (saying): "We feed you seeking Allah's Face only. We wish for no reward, nor thanks from you.'') (76:8, 9)
﴿ لَن تَنَالُواْ ٱلۡبِرَّ حَتَّىٰ تُنفِقُواْ مِمَّا تُحِبُّونَۚ ﴾
(By no means shall you attain Birr unless you spend of that which you love.) (3:92) Allah's statement:
﴿ وَيُؤۡثِرُونَ عَلَىٰٓ أَنفُسِہِمۡ وَلَوۡ كَانَ بِہِمۡ خَصَاصَةٌ۬ۚ ﴾
(...and give them preference over themselves even though they were in need of that) (59:9) refers to a higher category and status, as the people mentioned here give away what they need, while those mentioned in the previous Ayat give away what they covet (but not necessarily need).
﴿ ذَوِى ٱلۡقُرۡبَىٰ ﴾
(the kinsfolk) refers to man's relatives, who have more rights than anyone else to one's charity, as the Hadith supports:
« الصَّدَقَةُ عَلَى الْمَسَاكِينِ صَدَقَةٌ، وعَلَى ذِي الرَّحِمِ اثْنتَانِ: صَدَقَةٌ وَصِلَـةٌ، فَهُمْ أَوْلَى النَّاسِ بِكَ وَبِبِرِّكَ وَإِعْطَائِك »
(Sadaqah (i. e., charity) given to the poor is a charity, while the Sadaqah given to the relatives is both Sadaqah and Silah (nurturing relations), for they are the most deserving of you and your kindness and charity).
Allah has commanded kindness to the relatives in many places in the Qur'an.
﴿ وَٱلۡيَتَـٰمَىٰ ﴾
(to the orphans) The orphans are children who have none to look after them, having lost their fathers while they are still young, weak and unable to find their own sustenance since they have not reached the age of work and adolescence. `Abdur-Razzaq reported that `Ali said that the Prophet said:
﴿ وَٱلۡمَسَـٰكِينَ ﴾
(and to Al-Masakin) The Miskin is the person who does not have enough food, clothing, or he has no dwelling. So the Miskin should be granted the provisions to sustain him enough so that he can acquire his needs. In the Sahihayn it is recorded that Abu Hurayrah said that Allah's Messenger said:
« لَيْسَ الْمِسْكِينُ بِهذَا الطَّوَّافِ الَّذِي تَرُدُّه التَّمْرَةُ والتَّمْرَتَانِ، واللُّقْمَةُ واللُّقْمَتَانِ، وَلكِنِ الْمِسْكِينُ الَّذِي لَا يَجِدُ غِنىً يُغْنِيه وَلَا يُفْطَنُ لَهُ فَيُتصَدَّقَ عَلَيْه »
(The Miskin is not the person who roams around, and whose need is met by one or two dates or one or two bites. Rather, the Miskin is he who does not have what is sufficient, and to whom the people do not pay attention and, thus, do not give him from the charity.)
﴿ وَٱبۡنَ ٱلسَّبِيلِ ﴾
(and to the wayfarer) is the needy traveler who runs out of money and should, thus, be granted whatever amount that helps him to go back to his land. Such is the case with whoever intends to go on a permissible journey, he is given what he needs for his journey and back. The guests are included in this category. `Ali bin Abu Talhah reported that Ibn `Abbas said, "Ibn As-Sabil (wayfarer) is the guest who is hosted by Muslims.'' Furthermore, Mujahid, Sa`id bin Jubayr, Abu Ja`far Al-Baqir, Al-Hasan, Qatadah, Ad-Dahhak, Az-Zuhri, Ar-Rabi` bin Anas and Muqatil bin Hayyan said similarly.
﴿ وَٱلسَّآٮِٕلِينَ ﴾
(and to those who ask) refers to those who beg people and are thus given a part of the Zakah and general charity.
﴿ وَفِى ٱلرِّقَابِ ﴾
(and to set servants free) These are the servants who seek to free themselves, but cannot find enough money to buy their freedom. We will mention several of these categories and types under the Tafsir of the Ayah on Sadaqah in Surat Bara'ah (chapter 9 in the Qur'an), In sha' Allah.
﴿ وَأَقَامَ ٱلصَّلَوٰةَ ﴾
(performs As-Salah (Iqamat-As-Salah)) means those who pray on time and give the prayer its due right; the bowing, prostration, and the necessary attention and humbleness required by Allah. Allah's statement:
﴿ وَءَاتَى ٱلزَّڪَوٰةَ ﴾
(and gives the Zakah) means the required charity (Zakah) due on one's money, as Sa`id bin Jubayr and Muqatil bin Hayyan have stated.
﴿ وَٱلۡمُوفُونَ بِعَهۡدِهِمۡ إِذَا عَـٰهَدُواْۖ ﴾
(and who fulfill their covenant when they make it,)
﴿ ٱلَّذِينَ يُوفُونَ بِعَهۡدِ ٱللَّهِ وَلَا يَنقُضُونَ ٱلۡمِيثَـٰقَ ﴾
(Those who fulfill the covenant of Allah and break not the Mithaq (bond, treaty, covenant).) (13:20)
The opposite of this characteristic is hypocrisy. As found in a Hadith:
« آيَةُ الْمُنَافِقِ ثَلَاثٌ: إِذَا حَدَّثَ كَذَبَ، وَإذَا وَعَدَ أَخْلَفَ، وَإذَا ائْتُمِنَ خَان »
(The signs of a hypocrite are three: if he speaks, he lies; if he promises, he breaks his promise; and if he is entrusted, he breaches the trust.)
« إِذَا حَدَّثَ كَذَبَ، وَإذَا عَاهَدَ غَدَرَ، وَإذَا خَاصَمَ فَجَر »
(If he speaks, he lies; if he vows, he breaks his vow; and if he disputes, he is lewd.)
﴿ وَٱلصَّـٰبِرِينَ فِى ٱلۡبَأۡسَآءِ وَٱلضَّرَّآءِ وَحِينَ ٱلۡبَأۡسِۗ ﴾
(. ..and who are patient in extreme poverty and ailment (disease) and at the time of fighting (during the battles).) means, during the time of meekness and ailment.
﴿ وَحِينَ ٱلۡبَأۡسِۗ ﴾
(...and at the time of fighting (during the battles).) means on the battlefield while facing the enemy, as Ibn Mas`ud, Ibn `Abbas, Abu Al-`Aliyah, Murrah Al-Hamdani, Mujahid, Sa`id bin Jubayr, Al-Hasan, Qatadah, Ar-Rabi` bin Anas, As-Suddi, Muqatil bin Hayyan, Abu Malik, Ad-Dahhak and others have stated.
And calling them the patient here, is a form of praise, because of the importance of patience in these circumstances, and the suffering and difficulties that accompany them. And Allah knows best, it is He Whom help is sought from, and upon Him we rely.
﴿ أُوْلَـٰٓٮِٕكَ ٱلَّذِينَ صَدَقُواْۖ ﴾
(Such are the people of the truth) means, whoever acquires these qualities, these are truthful in their faith. This is because they have achieved faith in the heart and realized it in deed and upon the tongue. So they are the truthful,
﴿ وَأُوْلَـٰٓٮِٕكَ هُمُ ٱلۡمُتَّقُونَ ﴾
(and they are Al-Muttaqun (the pious).) because they avoided the prohibitions and performed the acts of obedience.
﴿ يَـٰٓأَيُّہَا ٱلَّذِينَ ءَامَنُواْ كُتِبَ عَلَيۡكُمُ ٱلۡقِصَاصُ فِى ٱلۡقَتۡلَىۖ ٱلۡحُرُّ بِٱلۡحُرِّ وَٱلۡعَبۡدُ بِٱلۡعَبۡدِ وَٱلۡأُنثَىٰ بِٱلۡأُنثَىٰۚ فَمَنۡ عُفِىَ لَهُ ۥ مِنۡ أَخِيهِ شَىۡءٌ۬ فَٱتِّبَاعُۢ بِٱلۡمَعۡرُوفِ وَأَدَآءٌ إِلَيۡهِ بِإِحۡسَـٰنٍ۬ۗ ذَٲلِكَ تَخۡفِيفٌ۬ مِّن رَّبِّكُمۡ وَرَحۡمَةٌ۬ۗ فَمَنِ ٱعۡتَدَىٰ بَعۡدَ ذَٲلِكَ فَلَهُ ۥ عَذَابٌ أَلِيمٌ۬ ﴾
﴿ وَلَكُمۡ فِى ٱلۡقِصَاصِ حَيَوٰةٌ۬ يَـٰٓأُوْلِى ٱلۡأَلۡبَـٰبِ لَعَلَّڪُمۡ تَتَّقُونَ ﴾
(178. O you who believe! Al-Qisas (the Law of equality) is prescribed for you in case of murder: the free for the free, the slave for the slave, and the female for the female. But if the killer is forgiven by the brother (or the relatives) of the killed (against blood money), then it should be sought in a good manner, and paid to him respectfully. This is an alleviation and a mercy from your Lord. So after this, whoever transgresses the limits (i.e. kills the killer after taking the blood money), he shall have a painful torment.) (179. And there is (a saving of) life for you in Al-Qisas (the Law of equality in punishment), O men of understanding, that you may acquire Taqwa.)