It wasnarrated from 'Abdullah bin 'Amir bin Rabi'ah that his fathersaid:
"We were with the Messenger of Allah (ﷺ) on a journey, andthesky was overcast so it was difficult for us to determine theQiblah.So we performed prayer, and we marked the location.* Later,when thesun reappeared, we realized that we had prayed facing adirectionother than the Qiblah. We mentioned that to the Prophet(ﷺ), thenthe Words were revealed: 'So wherever you turn there isthe Face ofAllah.'" [2:115]
English reference: Vol. 1, Book 5, Hadith 1020
Arabic reference: Book 5, Hadith 1073