One should try to keep himself satisfied in any condition of life — whether distress or happiness — which is offered by the supreme will. A person who endures in this way is able to cross over the darkness of nescience very easily.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
यस्य यद्दैवविहितं स तेन सुखदुःखयोः । आत्मानं तोषयन् देही तमसः पारमृच्छति
yasya yaddaivavihitaṃ sa tena sukhaduḥkhayoḥ | ātmānaṃ toṣayan dehī tamasaḥ pāramṛcchati
SB 4.8.33