Jesus is referring to the day of the Lord when all people will stand before God in final judgment (Isaiah 10:20; Joel 1:15; Joel 3:18; Amos 8:9; Amos 9:11; Zechariah 14:4; Malachi 3:17–18; Matthew 13:24–30, Matthew 13:36–43, Matthew 13:47–52; Matthew 24:30, Matthew 24:51; Matthew 25:12, Matthew 25:30, Matthew 25:46).1
22 On that day many will say to me, ‘Lord, Lord, did we not prophesy in your name, and cast out demons in your name, and do many mighty works in your name?’