All of the money in an HSA (including any contributions deposited by your employer) is always owned by you even if you leave your job, change or lose your qualifying health insurance coverage, or retire.
The money in an HSA never expires. Unlike flexible spending accounts (FSAs), all remaining HSA funds roll over each year.