Two individuals have been booked by the Uttar Pradesh police after they allegedly offered namaz at a Hindu temple in Mathura.