Code of Civil Procedure § 747
CHAPTER 3. Actions for the Recovery of Real Property, and Other Provisions Relating to Actions Concerning Real Property
An action for the recovery of real property against a person in possession cannot be prejudiced by any alienation made by such person, either before or after the commencement of the action.