Answer
The Qiblah of Aadam (Alayhis salaam) and Ebrahim (Alayhis salaam) was the Ka?abah in Makkah Mukarramah. Rasulullah (Sallallaahu Alayhi Wasallam) faced Baytul Maqdis with the order of Alah and turned towards the Ka?abah also with the order of Allah.
and Allah Ta’ala Knows Best
Mufti Ebrahim Desai