HSA Distribution used for Surgery

We have been contributing to HSA over the years this year we used the money for surgery.  This year we contributed $2000 for the whole year while for surgery and other medical expense we used $2998.97. The total balance in the account has been more than $6000 as years of contribution. Do I need to pay tax for this?