How much following distance a driver should keep to keep a safe following distance in an urban area?

In any driving location, it is generally agreed to be safe if you position yourself 3 seconds or more behind the vehicle in front of you.