Valmiki Ramayana Ayodhya Kanda Sarga 40 Shloka 26
Original Shlokaमहत्येषा हि ते सिध्दिरेष चाभ्युदयो महान्। एष स्वर्गस्य मार्गश्च यदेनमनुगच्छसि।।2.40.26।।
1 source checked for this shloka
एनम् this Rama, अनुगच्छसि (इति) यत् the fact that you are following him, एषा that one, ते for you, महती great, सिध्दि: achievement, एषः this, महान् great, अभ्युदयः prosperity, एषः this one, स्वर्गस्य to heaven, मार्गश्च way.
The very fact that you are following Rama is a great achievement and a great fortune for you. This, in fact, is the way to heaven.