The mosque and tomb were erected on the bed of sand that covered the temple and now sit five m ( 20 ft ) or so above the excavated floor level .
Both the mosque and tomb were built on the sand that covered a temple .