It had been revealed to him by the Holy Spirit that he should not see death before he had seen the Lord's Christ.{"Christ" (Greek) and "Messiah" (Hebrew) both mean "Anointed One"}
Probably the first time He was able to go to the feast, because He was now twelve and getting time for His bar mitzvah.