how to create resistance between two objects

I have two sprites one is stationary while the other has a rigid body moves based on forces. Occasionally both objects come into contact with each other. How can I create some resistance (or pull) to slow the moving object’s speed slightly when it separates after contact with the stationary object and resume to it’s original speed?

Does it pass through the 2nd object or hit it & stick a bit before starting to accelerate again?

It passes through it. So I want to slow it down as it separates to give the impression that the stationary object is pulling it.

Using a trigger for the other object, try using OnTriggerStay2D to change your characters speed/velocity to something lower. That way the character will move at normal speed, slow down as it passes through it, then go normal speed again when it has exited it.