Dhammapada · 16.2
Mā piyehi samāgañchi, appiyehi kudācanaṃ;Piyānaṃ adassanaṃ dukkhaṃ, appiyānañca dassanaṃ.
Ma piyehi samaganchi, appiyehi kudacanam; Piyanam adassanam dukkham, appiyananca dassanam.
Do not seek union with the beloved, nor ever with the unbeloved. Not seeing the beloved is suffering; seeing the unbeloved is also suffering.
— Dhammapada 16.2
Source: Pali text from the Khuddaka Nikāya of the Pali Canon (oldest extant Buddhist scripture, compiled c. 3rd century BCE). Public-domain English readings drawn from F. Max Müller's translation in Sacred Books of the East, Vol X (1881) and the Buddhist Publication Society's freely-licensed Acharya Buddharakkhita rendering.