Add a lerp/ make transistion smooth? C#

I have a script that detects when the player is in a certain range if a 3D planet and if it is the player get drawn into the player, and snaps the the rotation of the planet so that the player stands upright on the planet and can move around the planet. The only problem i have is the the transition from going from outside the range of the planets gravity to inside is snappy, and the player ust locks into position instantly. I have kinda heard about the lerp and i kinda, ish know about it, but i dont know how to add it to my code. I am very new to unity and any help would be appreciated

My Code:

	void FixedUpdate(){
		
		Collider[] inGravityWell = Physics.OverlapSphere(transform.position, gravityWellRadius);
		
		foreach(Collider col in inGravityWell){

			if(col.rigidbody){

				Vector3 pull = (transform.position - col.transform.position).normalized * gravity;
				col.rigidbody.AddForce(pull, ForceMode.Force);

				Transform body = col.transform;
				body.rotation = Quaternion.FromToRotation (body.up, pull*-1) *  body.rotation;
			}
		}        
	}
}

I think i have the answer, but i still have some problems:

Transform body = col.transform;
body.rotation = Quaternion.FromToRotation (body.up, pull*-1) * body.rotation;
body.rotation = Quaternion.Slerp (body.rotation, transform.rotation, Time.deltaTime * smooth);

My Revised answer as below:

Use the following code in place of the last two lines.

 Transform body = col.transform;
Quaternion toRotation = Quaternion.FromToRotation (body.up, pull*-1);
body.rotation = Quaternion.Lerp(body.rotation, toRotation, Time.deltaTime * smooth); //You can use Slerp also