It is narrated from Hazrat Hudhaifah (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) did not pray in Bayt al-Maqdis. If the Noble Prophet (peace and blessings be upon him) had prayed there, then that prayer would have become obligatory upon you as well.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 23320