He got nothing. The Afghan government got 1,000 prisoners.
It's worth pointing out that the Afghan government originally said no. Trump forced the deal.
Giving up 5,000 known terrorists (who would go on to take over the country) for a 0 amount of Americans.
Hell of a deal for the Taliban. They give up one Afghan worker, not even soldiers, and get 5 soldiers back.