Sunan An Nasai
494
It was narrated that Ibn 'Umar said:
While the people were in Quba', praying the Subh prayer, someone came to them and said that revelation had come to the Messenger of Allah (ﷺ) the night before, and he has been commanded to face the Ka'bah. So..
READ COMPLETE