Retirement tax questions

What was it withheld from?  You enter it when you enter the W2 (in box 2 & 17) or a 1099 box 4.