Within the first 50 seconds after you send your units outside of your City ( Raid / Siege / etc.), you may cancel this action and recall sent units for free. However, to recall the units after 50 seconds have passed, you will need to use the "Instant Recall" item. You may use it in the Tracking tab of your War Council.
If you try to Recall the units without having the item, you will receive the following notification:
You will be charged 300 Drachmas in case you press "Yes". Once you do so, the "Instant Recall" item will be automatically purchased and applied to recall the troops you intended to recall.