(a)
Order the plaintiff to deliver possession of the property to the persons entitled to it; and(b)
Make such provision as shall be just for the payment of all damages proximately caused by the proceeding and its dismissal as to that property.
Source:
Section 1268.620, https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=CCP§ionNum=1268.620.
.