The custodial parent usually has the right to the deduction. This is decided in the divorce agreement and the non-custodial parent may only accept the deduction if it’s agreed to in writing.