– Two people familiar with the deal say the Philadelphia Phillies have agreed to trade lefthander Cole Hamels and reliever Jake Diekman to the Texas Rangers for a package of prospects.

Lefthander Matt Harrison, righthander Jake Thompson, outfielder Nick Williams and catcher Jorge Alfaro make up the reported centerpiece of the Phillies’ return. Baseball America recently ranked them the Rangers’ third-, fourth- and fifth-best prospects.

Righthanders Jerad Eickhoff and Alec Asher are also reportedly in the deal, according to the Philadelphia Inquirer.

Thompson, 21, was the Rangers’ top pitching prospect. They acquired him last July in the trade that sent closer Joakim Soria to the Detroit Tigers.

Both sources spoke to the Associated Press late Wednesday night on condition of anonymity because the trade has not been finalized. Hamels has a limited no-trade clause but does not have to approve a deal to the Rangers.

Hamels would become the first pitcher in major league history traded during a season immediately after throwing a no-hitter — he no-hit the Chicago Cubs on Saturday at Wrigley Field.

The 2008 World Series MVP was an integral part of the greatest run in franchise history when the Phillies won five consecutive NL East titles, two pennants and one World Series from 2007-11.

Harrison, 29, is owed $26 million over the next two seasons after this year. He has made only nine starts since 2012 because of multiple back surgeries.

Hamels declined to speak to reporters after the Phillies’ loss to the Blue Jays on Wednesday night at the Rogers Centre.

His trade follows Wednesday’s deal that sent closer Jonathan Papelbon to Washington.