How to quote ancient poems when writing about the influence of environment on people?

If you live with the lame, you will learn to limp. (this also has a little influence on people. )

In the bitter fleabane bitter fleabane, can't bear to go straight. White sand is nirvana, and it is black. The former sentence is a good influence, and the latter sentence is a bad influence.

Living with kindness is like entering Lan Zhi's room. If you don't smell it for a long time, you will melt with it. Living with poor people is like entering the place of abalone. If you haven't heard of it for a long time, you will melt with it. (These three articles are from one article. )

If you don't touch the mud, you won't be evil. (Don't go with the flow)

There are still some non-standards, so I won't type them out.