What was the qibla for prayer in the Meccan period, before migration?
I remember stories from sirah that the Prophet used to pray at the Kaaba during his stay in Mecca and I've always assumed that it meant that he faced the Kaaba.
However I also know that the qiblah was changed around an year after the migration to Medinah, from Bait-ul-Muqadas to Kaaba?
So was the qiblah in Mecca also Bait-ul-Muqadas, or was it changed twice or is there something else?