Hyperbolicity and chain recurrence