When Gandalf the White and Aragorn , along with Legolas and Gimli appeared before him in The Two Towers , Théoden initially rebuffed the wizard 's advice to ride out against Saruman .
Legolas and Gimli went with Gandalf and Aragorn to see Théoden .