Luke 8:30

30 And Jesus questioned him, saying, `What is thy name?' and he said, `Legion,' (because many demons were entered into him,)

Luke 8:30 Meaning and Commentary

Luke 8:30

And Jesus asked him, saying, what is thy name?
&c.] This question was put, not out of ignorance in Christ, but for the sake of those that were with him; and partly, that the miserable condition of this man might be the more known; and partly, that his own power might be the more manifest in the dispossession:

and he said, legion, because many devils were entered into him;
(See Gill on Mark 5:9).

Luke 8:30 In-Context

28 and having seen Jesus, and having cried out, he fell before him, and with a loud voice, said, `What -- to me and to thee, Jesus, Son of God Most High? I beseech thee, mayest thou not afflict me!'
29 For he commanded the unclean spirit to come forth from the man, for many times it had caught him, and he was being bound with chains and fetters -- guarded, and breaking asunder the bonds he was driven by the demons to the deserts.
30 And Jesus questioned him, saying, `What is thy name?' and he said, `Legion,' (because many demons were entered into him,)
31 and he was calling on him, that he may not command them to go away to the abyss,
32 and there was there a herd of many swine feeding in the mountain, and they were calling on him, that he might suffer them to enter into these, and he suffered them,
Young's Literal Translation is in the public domain.