Has account refund from dentist

My dentist does not bill my insurance so i have to pay with my HSA and about a week later I receive a check for the amount I was responsible to pay. If I dont deposit that check into my Hsa is it technically not spend on medical expenses even though I have a receipt from my dentist for what I paid?