That was in 04, Punk hated AJ as they apparently all agreed to band together so they could work for both TNA and ROH after TNA refused to allow them to after Rob Feinstein was found to be a pedo. AJ and Daniels plus some other guys apparently went back on their word and worked for TNA only for a while. It seems likely to be the reason Punk has beef with TNA in general
"In 2004, Feinstein was caught in an internet-based sting operation, in which he allegedly tried to solicit sex on the internet from a person that he thought to be an underage boy (but was actually an adult, posing as a minor). After this was publicized by some news outlets, Feinstein resigned from both RF Video and ROH in June 2004.[3][4] In the aftermath of the scandal, Total Nonstop Action Wrestling (TNA) ended its talent-sharing agreement with Ring of Honor, abruptly withdrawing all of its contracted wrestlers from their prior commitments to perform in ROH shows—including major ROH draws A.J. Styles and Christopher Daniels, who each either held or were about to hold ROH championships.[5] Doug Gentry eventually bought Feinstein's stake in ROH, and later sold it to Cary Silkin.[6] ROH then started its own mail-order and online store operations, which sell DVDs of its live events, plus shoot interviews with wrestlers and managers—even some competitors' wrestling-related merchandise."
From WIki