Hello JA Customer,
Your eligibility for claiming either the first time homebuyer credit or long time resident home credit is determined by your marital status on the day you actually complete the closing. It is not determined by the date you signed the sales contract.
Married taxpayers must either both be first time homebuyers or they must both be long time residents to qualify for either credit. While you and your wife each qualified for the separate credits prior to your marriage, once you were legally married you lost your eligibility to claim either of these credits if the closing occurred after the marriage.
I am truly sorry I could not give you a more favorable answer, but that is how the IRS wrote the regulations on both of these credits.
If this was helpful please press the Accept button. It is the only way we receive any credit for helping with these questions.
Thank you JA Customer