Bono told Spanish television station CNN+ that he had "given the order for the troops to return" and that Friday would be the last day of their mission.
The troops were sent to serve in the region around the city of Mazar-i-Sharif in early September on a mission scheduled to last for a maximum 90 days.
Spain has an additional 540 troops serving under NATO command in Afghanistan.