I don't know of any that reference that it was the
ruins, it just says masjid, or bayt al-maqdis -from memory. When Umar arrived there as conquerer, it was ruins, because the Romans had destroyed it centuries before; Christians using it as a garbage dump (to offend the Jews. The act saying, 'the Temple (and Torah) are no longer necessary after Christ'). Muhammad is reported to have described Jerusalem accurately (the claim being he never been there, but he's been to Sham plenty of times
) and that he seen a caravan on it's way from there (also, could've just been expecting it; or it's all fabricated
).
I'll cite references for you later, inshallah
. (I'm not the man with the swiftness on that.)