Valmiki Ramayana Ayodhya Kanda Sarga 33 Shloka 14
Original Shlokaपीडया पीडितं सर्वं जगदस्य जगत्पतेः। मूलस्येवोपघातेन वृक्षः पुष्पफलोपगः।।2.33.14।।
1 source checked for this shloka
जगत्पतेः of the ruler of the earth, अस्य this Rama's, पीडया on account of his suffering, सर्वम् entire, जगत् earth, मूलस्य at the root, उपघातेन by destruction, पुष्पफलोपगः bearing flowers and fruits, वृक्षः इव like a tree, पीडितम् is distressed.
Just as severed at the root, an entire tree along with its fruits and flowers is destroyed, similarly the whole world gets afflicted when Rama, the ruler of the world, comes to harm.