Dear student,
When an electrolyte NaCl is added to the ferric oxide sol, NaCl get dissociate to produce Na+ and Cl- .Particle of ferric oxide Sol are positively charged so they will get coagulated with the negatively charged chloride ion and precipitate will formed.
Regards