وَكَذَٰلِكَ جَعَلْنَـٰكُمْ أُمَّةً وَسَطًا لِّتَكُونُوا۟ شُهَدَآءَ عَلَى ٱلنَّاسِ وَيَكُونَ ٱلرَّسُولُ عَلَيْكُمْ شَهِيدًا ۗ وَمَا جَعَلْنَا ٱلْقِبْلَةَ ٱلَّتِى كُنتَ عَلَيْهَآ إِلَّا لِنَعْلَمَ مَن يَتَّبِعُ ٱلرَّسُولَ مِمَّن يَنقَلِبُ عَلَىٰ عَقِبَيْهِ ۚ وَإِن كَانَتْ لَكَبِيرَةً إِلَّا عَلَى ٱلَّذِينَ هَدَى ٱللَّهُ ۗ وَمَا كَانَ ٱللَّهُ لِيُضِيعَ إِيمَـٰنَكُمْ ۚ إِنَّ ٱللَّهَ بِٱلنَّاسِ لَرَءُوفٌ رَّحِيمٌ
wakadhālika jaʿalnākum ummatan wasaṭan litakūnū shuhadāa ʿalā l-nāsi wayakūna l-rasūlu ʿalaykum shahīdan wamā jaʿalnā l-qib'lata allatī kunta ʿalayhā illā linaʿlama man yattabiʿu l-rasūla mimman yanqalibu ʿalā ʿaqibayhi wa-in kānat lakabīratan illā ʿalā alladhīna hadā l-lahu wamā kāna l-lahu liyuḍīʿa īmānakum inna l-laha bil-nāsi laraūfun raḥīmun
We have made you [believers] into a just community, so that you may bear witness [to the truth] before others and so that the Messenger may bear witness [to it] before you. We only made the direction the one you used to face [Prophet] in order to distinguish those who follow the Messenger from those who turn on their heels: that test was hard, except for those God has guided. God would never let your faith go to waste [believers], for God is most compassionate and most merciful towards people.
Thus We have made you [true Muslims - real believers of Islâmic Monotheism, true followers of Prophet Muhammad صلى الله عليه وسلم and his Sunnah (legal ways)], a just (and the best) nation, that you be witnesses over mankind and the Messenger (Muhammad صلى الله عليه وسلم) be a witness over you. And We made the Qiblah (prayer direction towards Jerusalem) which you used to face, only to test those who followed the Messenger (Muhammad صلى الله عليه وسلم) from those who would turn on their heels (i.e. disobey the Messenger). Indeed it was great (heavy) except for those whom Allâh guided. And Allâh would never make your faith (prayers) to be lost (i.e. your prayers offered towards Jerusalem). Truly, Allâh is full of Kindness, the Most Merciful towards mankind.