"The Wishing-Table, the Gold-Ass, and the Cudgel in the Sack" is a fairytale by the Brothers Grimm. The original German name is Tischlein deck dich, Goldesel und Knüppel aus dem Sack.
A tailor had three sons who were all fed by the milk of their goat. The oldest son was given the task to let the animal graze at the finest grass fields. At the end of the day the son asked the goat whether it had eaten enough and the animal confirmed this. However, when they returned home the goat claimed the opposite, causing the tailor to get upset and throw and beat his son out of the house. This pattern repeats itself with the second oldest and youngest son too, who are also falsely blamed by the goat for not feeding him enough and as a result kicked out of the house. Only when the father goes out to feed the goat himself and discovers that the creature still claims it hasn't eaten enough does he realize he misjudged his sons. He takes his razor, shaves the goat bare and uses his whip to kick it out of his house.
The story then follows each son individually. The first one went to a maker of furniture and learned the craft. After his service his master gave him a magic table as a sign of gratitude. Whenever he says "Table Deck Yourself" the table decks itself with the finest food and wine. The son decides to travel home and show his father what he learned and earned. On his way he visits a local inn, where he demonstrates the powers of the magic table. At night the inn keeper steals the table and switches it for a normal table, without the son being aware. When the son arrives home and tries to show the powers of the table to his father nothing happens, which upsets his father once again.
The second son goes to work for a miller. His master gives him a magical donkey who is able to produce gold out of its mouth and behind. Just like the oldest son the second son decides to travel home and happens to visit the same inn his brother did. He too demonstrates the powers of the donkey to the innkeeper who once again steals the animal at night and replaces it with a normal donkey, without the son being aware of what happened. When the son arrives home and tries to show the powers of the donkey instead of gold pieces landing on the cloth, it is droppings like an ordinary donkey, which upsets his father once again.