Preached to Jánussoní in answer to a question as to what constitutes brahmacariya (chastity).
There are seven "sex-bonds" mentioned, subjection to any of which is violation of brahmacariya.
The Buddha claims that he has destroyed them all. A.iv.54f.