Section 138(2) in The United Provinces Tenancy Act, 1939
(2)The tahsildar may pay the amount of the deposit to any person appearing to him to be entitled to the same or may, if in his opinion there is any doubt as to the person to whom the deposit should be paid, retain such amount until such doubt is removed by order of Court of competent jurisdiction.