Should I have to pay taxes on court-ordered disbursement from a retirement acct? Ex paid taxes taking it out of his account and it went right into my retirement account.

I have to pay taxes on court-ordered disbursement from retirement account (TSP).  Taxes were paid by ex when he made withdrawal.  Money went straight into my retirement account.  Does paying taxes twice sound right?