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, have We made of you an Ummat justly balanced, that ye might be witnesses over the nations, and the Messenger a witness over yourselves; and We appointed the Qibla to which thou wast used, only to test those who followed the Messenger from those who would turn on their heels (From the Faith). Indeed it was (A change) momentous, except to those guided by Allah. And never would Allah Make your faith of no effect. For Allah is to all people Most surely full of kindness, Most Merciful.