Section 378(p) in The Jammu and Kashmir State Ranbir Penal Code, 1989
(p)A, in good faith, believing property belonging to Z to be A's own property, takes the property out of B's possession. Here, as A does not take dishonestly, he does not commit theft.