Tension has been brewing in Sambhal since Tuesday when the Jama Masjid was surveyed on the orders of a local court following a petition that claimed that a Harihar temple stood at the site.