Section 237(3) in The Code of Criminal Procedure, 1973
(3)If, in any such case, the Court discharges or acquits all or any of the accused and is of opinion that there was no reasonable cause for making the accusation against them or any of them, it may, by its order of discharge or acquittal, direct the person against whom the offence was alleged to have been committed (other than the President, Vice-President or Governor of a State or the Administrator of a Union territory) to show cause why he should not pay compensation to such accused or to each or any of such accused, when there are more than one.