Summary:

To heal damage, a unit must remain inactive for a turn. The amount of damage that a unit heals depends upon the unit's location.

In a City: A unit heals 25 HPs per turn.
In Friendly Territory: 20 HP per turn.
In Neutral or Enemy Territory: 10 HP per turn.
Note that certain promotions will accelerate a unit's healing rate.