The issue had been raised by leaders of the Jamiat-e-Ulema Islam Fazal after talks in Kabul, Khaama Press reported.
The party's deputy chief, Maulana Gul Naseeb Khan, told reporters in Pakistan Saturday that 2,500 prisoners would be released as a result of the talks.
Aimal Faizi, a spokesman for Afghan President Hamid Karzai, said JUI-F chief Maulana Fazal-ur-Rehman has asked only for the release of prisoners who were members of JUI-F.
Faizi said Karzai told Rehman he would consider reviewing the cases of the Pakistani prisoners.
Rehman made the comments after he returned from a visit with Karzai during which they discussed various issues, including the Afghan peace process, the report said.
Exploding whale video goes viral on Internet
Texas principal bans speaking Spanish, stirs controversy