real estate tax deduction for decedent

If a decedent pays pro rata real estate taxes at closing after the death, is this tax deductible on the Form 1040 before death or Form 1041 after death?