Terms of Agreement

According to the book of 1 Samuel, there was a man from Ammon that required the people to do only one thing before he made a treaty with them. What was this requirement?