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

Viṣṇusahasranāmastotram

Verse 215

यं यं काममभिध्यायेत्तं तमाप्नोत्यसंशयम् ।सर्वान्कामानवाप्नोति समाराध्य जगद्गुरुम् ॥

In plain words

Whatever you long for and keep your mind fixed on, that is exactly what comes to you — there is no doubt in it. Worship the Guru of the worlds fully, and every desire is gained.

Close to the Sanskrit

Whatever desire one may meditate upon, that very one he obtains, without doubt; having fully worshipped the Teacher of the world, he gains all desires.