Which state do I pay quarterly estimated taxes to?

In 2021 I will be receiving a fellowship stipend that will not have taxes withheld. I am a MA resident but I work in CT. Do I need to pay quarterly taxes to CT or MA (or both)?