no matter who stationed these mosques, but prophet Ibrahim was the one who built and brought these mosques to glory by making people honour these holy sites
he did this job with son prophet Ishmael for masjid haram
and with son prophet ishaaque for masjid aqsa
he first did this for masjid haram and 40 years later for masjid aqsa
asking God fr forgiveness ...