when the prince imrahil had parted from legolas and gimli , at once he sent for eomer ; and he went down with him from the city , and they came to the tents of aragorn that were set up on the field not far from the place where king theoden had fallen .