Go to overview, Find the villa you sent the troops from and click send back, Might have missed a step there but that will get you in the right direction
From the Village you attacked from or from a village you have nobled click on the sword n shield at the bottom of the page scroll down to troops encamped select either all or pick which troops to return.