Namaz offered person gets bail