I've read 于 was a preposition, but there were many unrelated translations for it. 之 is as far as I know an object pronoun, like for instance him, her, them but can also mean somthing different.
How is this expression actually used in classical Chinese? What is its verbatim meaning? Why does the contraction 焉 sound so much different than the two characters?