user-1: Somewhere I thought it was said that the practice of harmlessness was praised by the Buddha as the greatest form of generosity. (I don't remember where I read this.)
Has anything like this been said in the Buddha's teachings or in any Buddhist texts?

user13709: Dhammapada 270 has been translated in several ways, some of which use the word "harm".
Verse 270: He who harms living beings is, for that reason, not an ariya (a Noble One); he who does not harm any living being is called an ariya
In terms of "greatest", it is notable that generosity is the first Paramita. 
Focusing on "greatest" alone is problematic, because it may lead one to ignore other considerations. For example, standing by to avoid risk of harm to oneself while others are being harmed might not be generous.

user13541: in Overflowing Merit.
Reasons for people to observe precepts.  some might do so for self benefit, self generated peace .. or in case of incorporating with gift giving, people observe precepts so others may benefit from it.  such as no killing, stealing etc. 
IMO, observing precepts for benefit of others is highest form of generosity. 

...Mendicants, these five gifts are great, original, long-standing, traditional, and ancient. They are uncorrupted, as they have been since the beginning. They’re not being corrupted now nor will they be. Sensible ascetics and brahmins don’t look down on them. What five? Firstly, a noble disciple gives up killing living creatures. By so doing they give to countless sentient beings the gift of freedom from fear, enmity, and ill will. And they themselves also enjoy unlimited freedom from fear, enmity, and ill will. This is the first gift that is a great offering, original, long-standing, traditional, and ancient. It is uncorrupted, as it has been since the beginning. It’s not being corrupted now nor will it be. Sensible ascetics and brahmins don’t look down on it. This is the fourth kind of overflowing merit …


user2282: Dhamma-dana, the gift of the noble teachings, is said by the Buddha to excel all other gifts:

The gift of Dhamma excels all gifts; the taste of the Dhamma excels all tastes; the delight in Dhamma excels all delights. The Craving-Freed vanquishes all suffering. ~~ Dhp. 354 ~~


-1: <p>Somewhere I thought it was said that the practice of harmlessness was praised by the Buddha as the greatest form of generosity. (I don't remember where I read this.)</p>

<p>Has anything like this been said in the Buddha's teachings or in any Buddhist texts?</p>
 13709: <p><a href="http://www.tipitaka.net/tipitaka/dhp/verseload.php?verse=270" rel="nofollow noreferrer">Dhammapada 270</a> has been translated in several ways, some of which use the word "harm".</p>

<p>Verse 270: He who harms living beings is, for that reason, not an ariya (a Noble One); he who does not harm any living being is called an ariya</p>

<p>In terms of "greatest", it is notable that generosity is the first <a href="https://en.wikipedia.org/wiki/P%C4%81ramit%C4%81" rel="nofollow noreferrer">Paramita</a>. </p>

<p>Focusing on "greatest" alone is problematic, because it may lead one to ignore other considerations. For example, standing by to avoid risk of harm to oneself while others are being harmed might not be generous.</p>
 13541: <p>in <a href="https://suttacentral.net/an8.39/en/sujato" rel="nofollow noreferrer">Overflowing Merit</a>.<br>
Reasons for people to observe precepts.  some might do so for self benefit, self generated peace .. or in case of incorporating with gift giving, people observe precepts so others may benefit from it.  such as no killing, stealing etc. 
IMO, observing precepts for benefit of others is highest form of generosity. </p>

<blockquote>
  <p>...Mendicants, these five gifts are great, original, long-standing, traditional, and ancient. They are uncorrupted, as they have been since the beginning. They’re not being corrupted now nor will they be. Sensible ascetics and brahmins don’t look down on them. What five? Firstly, a noble disciple gives up killing living creatures. By so doing they give to countless sentient beings the gift of freedom from fear, enmity, and ill will. And they themselves also enjoy unlimited freedom from fear, enmity, and ill will. This is the first gift that is a great offering, original, long-standing, traditional, and ancient. It is uncorrupted, as it has been since the beginning. It’s not being corrupted now nor will it be. Sensible ascetics and brahmins don’t look down on it. This is the fourth kind of overflowing merit …</p>
</blockquote>
 2282: <p>Dhamma-dana, the gift of the noble teachings, is said by the Buddha to excel all other gifts:</p>
<blockquote>
<p>The gift of Dhamma excels all gifts; the taste of the Dhamma excels all tastes; the delight in Dhamma excels all delights. The Craving-Freed vanquishes all suffering. ~~ <a href="https://www.accesstoinsight.org/tipitaka/kn/dhp/dhp.24.budd.html" rel="nofollow noreferrer">Dhp. 354</a> ~~</p>
</blockquote>
