That by that day is to be understood the day of judgment is generally agreed by interpreters.
We have prophesied in thy name; that is, revealed thy will unto people;
and in thy name, that is, by thy authority and power,
cast out devils, and done many wonderful works, that is, wrought many miraculous operations. In the Old Testament we find Baalam and Saul prophesying, who were both wicked men. Judas was sent out (under the New Testament) both to preach and to work miracles. So as none from gifts, no, not the most eminent and extraordinary gifts, can conclude the goodness of his state, or any special favour with God.
I will profess, that is, I will openly declare to them,
I never knew you, that is, so as to approve you, or take pleasure in you.
Depart from me, ye that work iniquity: see Mat_25:41.