Dichloromethane has a low boiling point (39.8-40oC) while phenol is a solid. Distillation will remove the volatile solvent, leaving the solid in the original flask.