Luke 2:26

The Holy Spirit had revealed to him that he would not see death before he had seen the Lord’s Christ.
BSB · Berean Standard Bible
And it was revealed unto him by the Holy Ghost, that he should not see death, before he had seen the Lord’s Christ.
KJV · King James Version
It had been revealed to him by the Holy Spirit that he should not see death before he had seen the Lord’s Christ.

Note “Christ” (Greek) and “Messiah” (Hebrew) both mean “Anointed One”

WEB · World English Bible
And it had been revealed unto him by the Holy Spirit, that he should not see death, before he had seen the Lord’s Christ.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

it
Psalm 25:14; Amos 3:7
Luke 2:26
see death.[Horao ton thanatos,] to see death, is a Hebraism for to die, exactly corresponding to [yir'eh mahvet.]
Psalm 89:49; Luke 9:27; Psalm 89:48; John 8:51; Hebrews 11:5
the Lord's
Psalm 2:2, 6; Isaiah 61:1; Daniel 9:24–26; John 1:41; John 4:29; John 20:31; Acts 2:36; Acts 9:20; Acts 10:38; Acts 17:3; Hebrews 1:8, 9