مُسْنَدُ أَحْمَدَ
Musnad Ahmad 3339
Musnad of 'Abdullah bin al-'Abbas bin 'Abdul-Muttalib from the Prophet
It was narrated that Ibn ‘Abbas (رضي الله عنه) said: The Prophet (ﷺ) prayed facing Jerusalem - 'Abdus-Samad said: and those who were with him (did likewise) - for sixteen months, then the qiblah was changed after that. 'Abdus-Samad said: Then the qiblah was made towards the Ka'bah. And Mu'awiyah - meaning bin 'Amr - said: Then the qiblah was changed after that.
Musnad Ahmad 3363A saheeh hadeeth; this is a da'eef isnad]