I am specifically sondering about the Napoleonic wars where a lot of prisoners where taken but other cases would Also be appreciated
While awaiting a response on the Napolenoic Wars, you may appreciate reading [this post] (https://www.reddit.com/r/AskHistorians/comments/k793pc/the_united_states_housed_guarded_and_feed_the/) detailing what happened to the 5000 troops that surrendered at Saratoga.
A fun side addition to that post is that on June 3, 1781 Jack Jouett rode hard down back trails to reach Monticello, doing so as Jefferson was eating breakfast the morning of the fourth. He had overheard British dragoons in a tavern bragging that they were to capture Governor Jefferson the next day and he rode all night to warn him, lacerating his face and leaving scars he would keep forever on the low tree branches along the backwoods paths as he rode. Because he did Jefferson narrowly escaped, however many of his fields, crops, and buildings were destroyed when the British took possession. 30 enslaved folks were carried off (27 of whom would die in British camp from disease), but that destruction was focused on his fields away from his mountaintop where much was left as it was, including his home. Years later he met "Bloody Ban" Tarleton in Europe, the man with such a vile reputation as a butcher in the Carolinas and whom "Tarleton's Quarters" is named for (which refers to the slaughtering of surrendering troops). He had been the one to order Monticello be left alone, and when Jefferson asked him why he did that Tarleton responded it was directly due to Jefferson's honorable treatment of the Hessian soldiers brought to Charlottesville. So were it not for the Saratoga surrender, Monticello would have been burned during the war. Of course Jefferson was to rebuild most of the house about a decade later, but it's a cool story anyway.