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 3 HPs per turn.
In Friendly Territory: 2 HP per turn.
In Neutral or Enemy Territory: 1 HP per turn.
Note that certain promotions will accelerate a unit's healing rate.