we have made you a moderate nation so that you could be an example for all people and the prophet an example for you. the direction which you had been facing during your prayers was only made in order that we would know who would follow the messenger and who would turn away. it was a hard test but not for those to whom god has given guidance. god did not want to make your previous prayers worthless god is compassionate and allmerciful.
وكذلك جعلناكم أمة وسطا لتكونوا شهداء على الناس ويكون الرسول عليكم شهيدا وما جعلنا القبلة التي كنت عليها إلا لنعلم من يتبع الرسول ممن ينقلب على عقبيه وإن كانت لكبيرة إلا على الذين هدى الله وما كان الله ليضيع إيمانكم إن الله بالناس لرءوف رحيم