For those wondering, this is part of a quote attributed to Lincoln by Teddy Roosevelt in a 1910 speech where he attributes several quotes to Lincoln. A fuller excerpt of the Roosevelt speech is as follows:
Part of our debt to [Lincoln] is because he forecast our present struggle and saw the way out. He said: "I hold that while man exists it is his duty to improve not only his own condition, but to assist in ameliorating mankind." And again: "Labor is prior to, and independent of, capital. Capital is only the fruit of labor, and could never have existed if labor had not first existed. Labor is the superior of capital, and deserves much the higher consideration." If that remark was original with me, I should be even more strongly denounced as a Communist agitator than I shall be anyhow. It is Lincoln’s. I am only quoting it; and that is one side; that is the side the capitalist should hear. Now, let the working man hear his side. "Capital has its rights, which are as worthy of protection as any other rights. . . . Nor should this lead to a war upon the owners of property. Property is the fruit of labor; . . . property is desirable; is a positive good in the world." And then comes a thoroughly Lincoln-like sentence: "Let not him who is houseless pull down the house of another, but let him work diligently and build one for himself, thus by example assuring that his own shall be safe from violence when built."