´It was narrated from ‘Abdullah bin ‘Amir bin Rabi’ah that his father said:` “We were with the Messenger of Allah (ﷺ) on a journey, and the sky was overcast so it was difficult for us to determine the Qiblah. So we performed prayer, and we marked the location.* Later, when the sun reappeared, we realized that we had prayed facing a direction other than the Qiblah. We mentioned that to the Prophet (ﷺ), then the Words were revealed: ‘So wherever you turn there is the Face of Allah.’” [2:115]
Hadith Referenceسنن ابن ماجه / كتاب إقامة الصلاة والسنة / 1020
Hadith Takhrij«سنن الترمذی/الصلاة 141 ( 345 )، ( تحفة الأشراف: 5035 ) ( حسن )» ( اس کی سند میں اشعث بن سعید متروک ہے، لیکن شواہد کی وجہ ہے یہ حسن ہے )