The Chinese idiom 打草惊蛇 (da cao jing she) means beating the grass and frightening the snake. Today it warns against careless action that alerts the other side. Its first recorded use was the opposite. The man who wrote those four characters was warning nobody, and the snake he was talking about was himself.
The source is a note in the Southern Tang Register, a small book by the Song writer Zheng Wenbao. The whole entry is about thirty characters, the length of one remark after dinner.

First, the place.
Southern Tang was one of the Ten Kingdoms, with its capital at Jinling and its territory across what is now Jiangsu, Anhui and Jiangxi. At its height it held more than thirty prefectures and was the most cultivated court in the south. The last ruler of that house is better known than the first: Li Yu, the poet, whose lyrics of lost kingdom are still memorized.
Dangtu was one of its counties, on the Yangtze, in what is now part of Maanshan in Anhui. A small county. Not badly placed: near the river, with a ferry and a market.
The head of the county was a man named Wang Lu.
The Register says of him that he was much concerned with property. That is a polite phrase. Property in that period meant land, houses, and people. Five words, and the meaning is clear: the main purpose of the office held by this man was to acquire.
A county office in that era had a small staff. Under the magistrate sat the registrar, who handled documents, accounts and household registers, the closest pen to the hand of the magistrate. There was also a police officer for arrests and order. Their salaries were low. The Five Dynasties was a world run by soldiers, and a clerk could not live on his pay, so a concern for property was normal, not exceptional.
Worse still was tenure. In those decades county and prefecture posts were mostly appointed by the military governors, with the court simply registering the fact. A term often lasted a year or two, and promotion depended on a superior, not on a record. In that position the rational play is to take everything available in the two years you have, because next year the county may belong to somebody else.
Given those rules, a Wang Lu was not an abnormality. He was the norm. Which is why the weight of this story is not that a crooked official existed. The weight is that he was afraid.
Two men working together can keep accounts very clean.
The trouble came when the people of the county stopped enduring it.
One day the residents of Dangtu brought a joint petition. It accused the registrar of taking bribes. It was handed in to the head of the county, which is to say, to Wang Lu.
Here is the misalignment that makes the story.
The people accused the registrar, not the magistrate. Perhaps they did not know the magistrate had a share. Perhaps they knew and did not dare to accuse him. Either way they handed the paper to the man most likely to be guilty.
Wang Lu took it and read.
Every item was familiar. Which sum had entered the books, and how. Which field had changed its registered name. Which merchant goods had been held and then released. The registrar had done these things, and so had he, and some of them he had ordered.
Reading it, he felt the ground move.
And then he did something badly indiscreet.
He wrote on the petition, in the space for the magistrate verdict: you beat the grass, but I, the snake, am already startled.
Eight characters.
He ruled on the document that accused his subordinate and confessed on it.
A magistrate facing a petition against his own clerk has three normal options. Investigate. Bury it. Report it upward. He chose a fourth, and wrote his private thought onto official paper.
The word used for that note is pan, the formal verdict a magistrate writes at the foot of a document. In the Tang and after, pan was an examination subject: give a candidate a case, ask for a few lines of ruling, see whether he can write and reason. A pan was not a scribble. It was a document to be filed.
So the eight characters went into the archive. And then into a book. And then into a thousand years of the language.
The structure of the story is worth taking apart.
The first layer is the guilt of the guilty. The people struck the grass, meaning the registrar. The snake that jumped was the magistrate. The figure is exact. A snake in grass cannot be seen; you judge it by the movement of the grass. A corrupt official cannot be seen either; you judge him by the case against somebody near him.
The second layer is the arithmetic of shared guilt. Once the registrar is investigated, the first name he gives will be the magistrate. This is not a moral matter. It is arithmetic. A subordinate who can no longer carry the weight will pull the man above him down as well, because then at least he is not falling alone.
The third layer is the one usually missed. Why did those eight characters survive?
Because they are so useful.
A sentence written in panic by a corrupt official turned into a general rule: touch one man and you alert every man like him. Which is why later investigators, auditors and arresting officers cared most about not startling anyone. Count the snakes first, then choose where to hit the grass. Raid the houses on the same day. Arrest at the same hour. Question the witnesses separately. All of that is the reverse of beating the grass.
The meaning turned quietly at that point.
Wang Lu meant: you are investigating him, and I am frightened. Later users mean: do not move yet, you will frighten him.
A passive fear became active advice. The four characters did not change. The speaker did.
Put another way, the idiom was cleaned up in transit. What began as the slip of a criminal ended as the counsel of a careful man. Words often live like this. To survive, they change how they live.
One more thing deserves saying.
The Register records old affairs of Southern Tang, and its author was a man of Southern Tang who entered Song service. He served in the south as a young official, and after the conquest he rose to a post in the Ministry of War. He wrote seal script, and he wrote poems. He also compiled a separate book on the institutions and persons of the Southern Tang. The Register is looser. It collects stories of this kind.
He wrote this entry after the state was gone. In 975 the Song army crossed the river, Jinling fell, and the last ruler came out and surrendered. That was the final page of the court.
A former official of a destroyed kingdom, writing up a county magistrate disgrace, in a flat voice, with no comment at all.
That method cuts deeper than abuse.
Because the reader keeps going. If one county was like this, what of a prefecture? What of a state?
What became of Wang Lu, the Register does not say. That is not surprising. Books of this kind record a sentence, not a man. Eight characters survived. The man did not.
Afterwards the phrase became common knowledge in warfare and in investigation, and then a piece of daily advice: speak with something held back, look around before you move, do not startle the wrong person before you are ready.
Few remember that the first time the sentence was written down, the hand holding the brush was shaking.
A brush paused over a petition, and then eight characters went down. By the rules that paper should have been filed, forwarded, and answered. The histories give no answer. Perhaps it was suppressed. Perhaps it was burned. Perhaps Wang Lu finished writing and pushed it into his sleeve.
A thousand years later we have only the eight characters.
The grass is still there. So is the snake. Only the field has changed.
Read as a Chinese proverb, it is advice. Read as it was written, it is a confession. This is a Chinese fable in which the moral and the original speaker point in opposite directions, which is exactly why it lasted.