The film you are describing is Sleepers (1996), not The Shawshank Redemption. In Sleepers, four childhood friends—played as adults by Jason Patric, Brad Pitt, Billy Crudup, and Ron Eldard—reunite to exact revenge on the guards who abused them in a juvenile detention center.
Brad Pitt plays Michael Sullivan, one of the four protagonists. The Shawshank Redemption (1994) stars Tim Robbins and Morgan Freeman and follows a very different prison narrative. The two films are often discussed together due to their prison settings, but their plots and casts are distinct.