This woman is not a person. Where is the original source of this poem?

Very early, I can't remember the specific source. There is a story:

It is said that a scholar was asked to write a poem when she went to celebrate her mother-in-law's birthday, so she made such a poem casually. The first sentence made everyone stunned and wanted to get angry. The second sentence made her mother-in-law smile. The third sentence made her mother-in-law want to beat him. The last sentence made him come back and immediately let everyone applaud.

There is also such a version: this woman is not a human being, and the fairy came down to earth for nine days. The adopted son is a thief and steals flat peaches for his mother.