Ramayana
प्राप्तव्यान्येव प्राप्नोति गन्तव्यान्येव गच्छति । लब्धव्यान्येव लभते दुःखानि च सुखानि च ॥ 7-54-16 ॥
One attains only what is to be attained, goes only where one is bound to go, and obtains only what is to be obtained, whether sorrows or joys.
english translation