Section 406(3) in The Code of Criminal Procedure, 1973
(3)Where any application for the exercise of the powers conferred by this section is dismissed, the Supreme Court may, if it is of opinion that the application was frivolous or vexatious, order the applicant to pay by way of compensation to any person who has opposed the application such sum not exceeding one thousand rupees as it may consider appropriate in the circumstances of the case.