Hazrat Ibn Sirin states that Hazrat Qazi Shurayh used to enforce hudood (legal punishments) in mosques.