Valmiki Ramayana Ayodhya Kanda Sarga 22 Shloka 22
Original Shlokaसुखदुःखे भयक्रोधौ लाभालाभौ भवाभवौ। यच्च किञ्चित्तथाभूतं ननु दैवस्य कर्म तत्।।2.22.22।।
1 source checked for this shloka
सुखदुःखे happiness or misery, भयक्रोधौ fear or anger, लाभालाभौ gain or loss, भवाभवौ birth or death, तथाभूतम् that happens, यच्च किञ्चित् whatever is there, तत् that, दैवस्य destiny's, कर्म ननु is surely its act.
Happiness or misery, fear or anger, gain or loss, birth or death, and all such things are surely the acts of destiny.