After being warned in a dream not to return to Herod, they went back by another route to their own country.
When he learned that he was from Herod’s jurisdiction, he sent him over to Herod, who also happened to be in Jerusalem at that time.