Do I have to claim a lump sum (401k) alimony payment if it was not required by the court?

My ex-husband and I split amicably and wrote our own terms with the help of a lawyer.  He voluntarily gave me half of his 401k.   Do I have to claim this money I received on my taxes?