MA resident, but sold my First House in RI

Both my wife and I are Massachusetts residents. I worked in Mass with a Mass home address. And we as Married Jointly.

 

However, before moving to MA I used to live in RI and that's where I bought my first home. My wife also used to live in that house for most of the time. I sold that house in September 2021. Understandably RI sales tax was withheld. But would I qualify for any state or federal tax credits for selling my first home? Or would I be subject to standard federal taxation on real estate sales?