The works of Ādi Śaṅkarācārya

Viṣṇusahasranāmastotram

Verse 102

आदिस्त्वं सर्वभूतानां मध्यमन्तस्तथा भवान् ।त्वत्तः समभवद्विश्वं त्वयि सर्वं प्रलीयते ॥

In plain words

You are the beginning of all beings. You are their middle, and you are their end as well. The whole universe came into being out of you, and in you the whole of it dissolves away.

Close to the Sanskrit

You are the beginning of all beings; the middle and the end likewise are you. From you the universe came into being; in you everything dissolves.