Retirement tax questions

No.  It doesn't matter what you did with the money.  Buying a house is only an exception to an IRA (not a 401k) early withdrawal penalty.  Or did you take it out of an IRA?