چور کی سزا
For social matters e g collection of zakat or a crime, a state can tag people for administrative purposes. For example those who pray in Masjid and pay zakat can be legally considered muslims. This kind of identification was necessary in a muslim state where non muslims were subject to different laws or taxes. In a nation state like Pakistan or india, the state does not have to know religion of its citizens. However if laws are different for different religions, the court give a choice to a criminal under what law he would like to be punished. In such a case, it’s the criminal and not the court who will select a religion.