HSA -

If I withdraw money from my HSA, when do I have to pay the penalty?

If I withdraw 1000 from my HSA, will I receive that exact amount or will I have a penalty right now and receive less money?