yǐ
classical final particle, similar to modern 了[le5]
This is a grammatical particle — its meaning comes from how it's used in sentences, not from its components.
命不久矣
mìng bù jiǔ yǐ
at death's door
往事已矣
wǎng shì yǐ yǐ
the past is dead (idiom)