Valmiki Ramayana Sundara Kanda Sarga 36 Shloka 19
Original Shlokaकच्चिदाशास्ति देवानां प्रसादं पार्थिवात्मजः। कच्चित्पुरुषकारं च दैवं च प्रतिपद्यते।।5.36.19।।
1 source checked for this shloka
पार्थिवात्मजः prince, देवानाम् of gods, प्रसादम् blessings, आशास्ति कच्चित् is there any hope, पुरुषकारं च his personal efforts, दैवं च providence, प्रतिपद्यते he obeys
"Does the prince ever seek the blessings of gods or fall back upon personal effort as well as providence?