Valmiki Ramayana Ayodhya Kanda Sarga 108 Shloka 16
Original Shlokaदानसंवनना ह्येते ग्रन्था मेधाविभिः कृताः। यजस्व देहि दीक्षस्व तपस्तप्यस्व सन्त्यज।।2.108.16।।
1 source checked for this shloka
यजस्व perform sacrifices, देहि give away, दीक्षस्व be initiated, तपः religious austerities, तप्यस्व practice, सन्त्यज renounce, एते these, ग्रन्थाः texts mannuals, मेधाविभिः by intelligent men, कृताः have been composed, दानसंवननाः हि to induce people to give charity.
It was to induce people to give charity that treatises are composed by intelligent men exhorting, 'perform sacrifices', 'give charity', 'be initiated', 'practise religious austerities', 'renounce', etc.