Muwatta Malik #468
The Qibla
Yahya related to me from Malik from Yahya ibn Said that Said ibn
al-Musayyab said, "The Messenger of Allah, may Allah bless him and
grant him peace, prayed towards the Baytal-Maqdis for sixteen months
after arriving in Madina. Then the qibla was moved, two months before
the battle of Badr. "
About Muwatta Malik
This hadith is #468 from Muwatta Malik, in the Book of The Qibla. Muwatta Malik contains 1,985 hadiths across 61 books.