Sell (someone) short

To underestimate someone.

My friend is selling himself short when he thinks that he will not be able to find a good job.