In New Delhi , government offices closed , and thousands packed into the main 17th-century mosque known as " Jama Masjid " Tuesday morning to pray .