After attacking an enemy and losing units, you have 30 seconds to use gold to revive your fallen units. You can revive units in your attack report.

The more units were hit, the higher the price.