Read the Arabic text and available English translation from Musnad Ahmad, with its supplied source reference.
Musnad Ahmad 2991
Grading supplied with this record: lts isnad is saheeh)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated that Ibn ‘Abbas (رضي الله عنه) said:
When he was in Makkah, the Messenger of Allah (ﷺ) used to pray facing Jerusalem, with the Ka'bah in front of him, (and he used to pray facing Jerusalem) for sixteen months after he migrated to Madinah, then he was told to change (the qiblah) to the Ka'bah.
Full reference and source
Musnad Ahmad 2991
Arabic/English book : Book 25, Hadith 2991
References, translations and numbering differ between editions. A URL number is an internal app record identifier, not universal hadith numbering. Only supplied grading is displayed; no new authenticity assessment is made.