Al-Bara' added, "Before we changed our direction towards the Ka'ba (Mecca) in prayers, some Muslims had died or had been killed and we did not know what to say about them (regarding their prayers.) Allah then revealed: And Allah would never make your faith (prayers) to be lost (i.e. the prayers of those Muslims were valid).' " (2:143).
In-book : Book 2, Hadith 33
USC-MSA web (English) : Vol. 1, Book 2, Hadith 40 (deprecated)