The Pillow That Dreamed a Lifetime in a Bowl of Millet / 枕中记

A penniless scholar borrows a Daoist's pillow at a roadside inn — and lives an entire glittering career inside it before the millet finishes cooking

From the Tang Tales of the Marvelous (唐传奇), early single-piece chuanqi

By Shen Jiji (沈既济, c. 750–800) · Translated and annotated by Cathay Tales


A young man in a worn brown coat sits in a roadside inn complaining about his ruined life. The old Daoist across from him smiles and hands him a porcelain pillow. The innkeeper is still cooking a pot of millet when the young man wakes up — fifty years later, having lived a complete life from the inside out.


The Story

In the seventh year of the Kaiyuan reign — the year 719 — a Daoist named Lord Lü (a wandering immortal who, by the time of this tale, was already said to possess the arts of the gods) was traveling the road to Handan (an ancient city on the great north road, in what is now Hebei province). He stopped at a wayside inn. He took off his hat, loosened his belt, leaned back on his bundle, and sat.

Soon a young traveler appeared — Lu Sheng (a penniless out-of-luck scholar from Shandong, surname Lu, riding the kind of horse a struggling farm man rides). He was wearing a short brown coat of coarse cloth and riding a young dark horse, on his way out to his field. He stopped at the inn too, sat down on the same mat as the old man, and they talked and laughed pleasantly.

After a while, Lu Sheng glanced down at his own threadbare clothes and let out a long sigh. "A grown man, alive in this world, and reduced to this."

"Looking at you," the old Daoist said, "your body is sound, you have no sickness, you've been chatting amiably enough — and yet you sigh about your hardship. Why?"

"I'm just surviving," Lu Sheng said. "How can you call this living?"

"If this isn't living, what is?"

"A real man," Lu Sheng said, "should be in the world building deeds, making a name — a general going out, a minister coming in, eating off rows of bronze cauldrons, choosing what music to hear, growing his family and his estate ever larger and richer. Only then can you call it living. I had ambitions once. I studied. I trained myself. When I was young I thought purple and crimson robes were mine for the picking. Now I am in my prime — and still bent over the plow. If that's not hardship, what is?"

The words came out, and his eyelids grew heavy. He wanted to sleep.

The innkeeper, just then, was steaming a pot of yellow millet for the meal.

Lord Lü reached into his bundle and brought out a pillow. He handed it across.

"Sleep on this," he said, "and it will give you the kind of life you say you want."

The pillow was a green porcelain block, hollow at both ends, with a small opening on each side.

Lu Sheng lowered his head onto it. He saw the opening at the end grow wider, and brighter, until at last he could lift his whole body and enter through it. And so he came home.


A few months later he married a daughter of the Cui clan of Qinghe (one of the very greatest aristocratic clans of Tang China — marriage into the Cui clan was, in this period, the kind of dynastic match an entire scholar-family would scheme for over generations). Her beauty was extraordinary. His prospects rose. He grew elegant in dress and bearing.

The next year he passed the jinshi (the highest level of the imperial examinations — passing it placed a man among the top scholars of his generation, eligible for the most senior posts). He was appointed to the Secretariat-Chancellery library, then took the imperial selection examination and was made magistrate of Weinan, then rapidly promoted to Investigating Censor, then to Court Diarist with the right to draft imperial edicts.

Three years on, he was sent out to govern Tongzhou, then transferred to Shanzhou. Lu Sheng loved public works. He dug a canal eighty li long across western Shaanxi to connect what had been impassable terrain, and the people of the region erected a stone tablet to his merit. He was moved to Bianzhou, then made Surveillance Commissioner of the Henan Circuit, then summoned back to be Prefect of the Capital.

That year the Divine and Martial Emperor — that is, the great Emperor Xuanzong (玄宗) — was campaigning against the western tribes and pushing out the frontier. The Tibetans, under Xi Mo-luo and Zhulong Mang-buzhi, had stormed the prefectures of Gua and Sha (in what is now far western Gansu, near Dunhuang). The Hexi military governor Wang Junchuo (a real Tang frontier general killed in 727) had just been killed. The lands between the Yellow River and the Huangshui were in chaos. The emperor was searching for a strong commander. Lu Sheng was promoted — Vice-Censor-in-Chief and Military Governor of the Hexi Circuit. He smashed the Tibetan forces, took seven thousand heads, opened up nine hundred li of new ground, and built three great cities to seal the key passes. The frontier people raised a stone for him at Juyan Mountain.

When he returned to court the honors poured down. He was transferred to Vice-Minister of Personnel, then to Minister of Revenue and Censor-in-Chief. His reputation stood high; the court bent toward him. The ruling minister grew jealous, planted a whispered rumor, and had him demoted to Prefect of Duanzhou. After three years he was recalled as Cavalier Attendant, and not long after made Joint Manager of Affairs with the Secretariat-Chancellery — that is, chief minister of state.

For more than ten years he and the Chief Counsellor Xiao Song (Tang chief minister of the 720s–730s) and the Vice-Director Pei Guangting (the senior administrator who served alongside him) sat at the very center of government. Their secret counsels were summoned three times in a single day. He was called the worthy chancellor.

His colleagues hated him. They accused him of conspiring with frontier generals — a plot against the throne. The case was sent down to the imperial prison. The officers came with their retinue to his gate and seized him on the spot. Stunned and terrified, Lu Sheng said to his wife: "My family in Shandong has five good fields. They are enough to keep cold and hunger off. Why did I chase office? And now it has come to this — I would give anything to go back to that short brown coat and that young dark horse and ride the Handan road again, and I cannot."

He drew a knife and tried to cut his own throat. His wife saved him.

The others in the case were all executed. He alone was spared, protected by a palace eunuch, his sentence reduced from death — and exiled to Huanzhou (a Tang penal colony in what is now northern Vietnam, the standard place of banishment for the worst offenders).

A few years later the emperor learned the case had been false. Lu Sheng was recalled, made Director of the Secretariat, and ennobled as Duke of Yan. The favor shown him was extraordinary.

He had five sons — Jian, Zhuan, Wei, Ti, and Yi — all able. Jian passed the jinshi and became an Inspector of Personnel. Zhuan became an Imperial Censor. Wei became Auxiliary in the Court of Imperial Sacrifices. Ti became Magistrate of Wannian. Yi, the brightest of them, was made Left Reminder at the age of twenty-eight. Their marriages were into the great houses of the empire. He had more than ten grandchildren.

Twice exiled to wild frontiers, twice raised to the highest seats of state — in and out of the central court, drifting through the halls of power for more than fifty years — he lived in towering, blinding splendor. By nature lavish, fond of indulgence, his inner chambers were filled with the most exquisite women, the most splendid music. The lands, the mansions, the beauties, the famous horses presented to him by the throne — they could not be counted.

In old age he grew frail. He asked again and again to retire, and the emperor would not allow it. When he fell ill, palace messengers came one after another at his door, an unbroken stream. The finest physicians, the rarest medicines — every one was brought.

Knowing he was about to die, he submitted a final memorial:

Your servant was once a poor scholar of Shandong, content with his garden and his fields. By chance he met the holy age and was raised to office. He was given honors beyond his measure, ranks beyond his worth. He went out holding the imperial standard, came in to sit among the great ministers. He has labored at the center and the borders for many years — without much to add to Heaven's grace, without much to enrich the sage's transformation. Carrying burdens not his to carry, treading on thin ice — his fear grew with each passing day. Today he is past eighty, his rank at the very top of the Three Excellencies. His clock and his water-vessel have run down together. His sinews and bones are aged. He lies lingering. He waits for the time to end. Without merit equal to the brilliance above him, he leaves the holy reign for nothing. With endless gratitude he submits this memorial in thanks.

The emperor replied:

You with your great virtue have been my chief support. You have gone out to hold the marches, come in to assist in our peace. For twenty-four years of peace and prosperity, I have leaned on you. When this illness took hold I expected you would recover; that it has sunk into something incurable distresses me. I now send the Marshal Gao Lishi (Xuanzong's most powerful eunuch and lifelong attendant) to your house to inquire after you. Strive at acupuncture and stone, take care for our sake. I still hope all will be well, and look for your recovery.

That night, he died.


Lu Sheng stretched, yawned — and woke up. He was still lying on the inn mat. Lord Lü was still sitting beside him. The innkeeper's pot of yellow millet was not yet cooked. Everything around him was exactly as he had left it.

He sat up with a jolt. "Was all that — a dream?"

The old man looked at him.

"The fullness of a man's life," he said, "is exactly like that."

Lu Sheng was silent for a long while. Then he bowed.

"Glory and disgrace, success and failure, gaining and losing, living and dying — I have known them all now. This is how you closed up my desires. I dare not refuse the lesson."

He bowed his head twice, and left.


Translator's Reflection

I had read the standard one-line summary of this story for years before I actually sat down with the text — man falls asleep, dreams a whole career, wakes up to find the rice still cooking — and I expected it to be a charming little fable. It's heavier than that.

The thing the standard summary leaves out is how good the dream is. Lu Sheng doesn't dream of a corrupt life or a hollow one. He dreams of a brilliant one. He marries up. He passes the highest exam. He digs canals that help people. He smashes a real foreign invasion and gets a stone monument from the people of the frontier. He governs the empire as a famously worthy chief minister for over a decade. He has five accomplished sons. He is honored by the emperor in his last sickness by the most powerful eunuch in the realm coming personally to his bedside.

And then he wakes up. And the millet isn't done.

What got me on this reading is the knife. Halfway through the dream career, when his enemies set him up and the officers come to his door, Lu Sheng tries to kill himself. His wife stops him. He's exiled to a swamp colony in what is now northern Vietnam. A few years later he is rescued and raised again, higher than before. Inside the dream, that knife is the absolute lowest point a person can reach. But from outside — from the inn mat where his body is napping — it is just a dream knife. It doesn't even leave a mark.

I think that is the actual hinge of the story. Not the gap between ambition and reality, but the gap between how big things feel from inside a life and how small they are from outside it. Inside the dream, every promotion is enormous. Every betrayal is unbearable. The throat-cutting is the worst night of Lu Sheng's life. From outside — same person, fifteen minutes later, millet still warming — it is nothing.

Shen Jiji isn't telling you not to want things. Lord Lü doesn't lecture. He just lends a pillow and lets the kid feel what an entire ambitious life is shaped like, all the way through, including the part where you're old and frightened and lying in your bed waiting for the imperial physician to arrive. Then he asks the question.

I notice the story doesn't tell us what Lu Sheng does after he walks away. It doesn't need to. Whatever it is, he is doing it from a slightly different place than he was an hour ago — and the writer trusts that small difference to be the whole point.


Next tale: To be selected from this week's queue. Friday brings a Liaozhai pairing with a Sanyan vernacular story. → [Coming soon]


📜 Original Text in Classical Chinese · 文言原文

开元七年,道士有吕翁者,得神仙术。行邯郸道中,息邸舍,设榻施席,摄帽弛带,解囊而坐。俄见旅中少年,乃卢生也。衣短褐,乘青驹,将适于田,亦止于邸中,与翁共席而坐,言笑殊畅。久之,卢生顾其衣装敝亵,乃长叹息曰:「大丈夫生世不谐,困如是也。」翁曰:「观子形体,无苦无恙。谈谐方适,而叹其困者,何也?」生曰:「吾此苟生耳,何适之谓?」翁曰:「此不谓适,而何谓适?」答曰:「士之生世,当建功树名,出将入相,列鼎而食,选声而听,使族益昌而家益肥,然后可以言适乎。吾尝志于学,富于游艺,自惟当年,青紫可拾。今已适壮,犹勤畎亩,非困而何?」言讫而目昏思寐。时主人方蒸黄粱为馔,共待其熟。翁乃探囊中枕以授之,曰:「子枕吾枕,当令子荣适如志。」

其枕青瓷,而窍其两端。生俯首就之,见其窍渐大,明朗,乃举身而入,遂至其家。数月,娶清河崔氏女。女容甚丽,生资愈厚。生大悦,由是衣装服驭,日益鲜盛。明年,举进士,登第。释褐秘校。应制,转渭南尉。俄迁监察御史。转起居舍人,知制诰。三载,出典同州,迁陕牧。生性好上功,自陕西凿河八十里,以济不通,邦人利之,刻石纪德。移节汴州,领河南道采访使,征为京兆尹。是岁,神武皇帝方事戎狄,恢宏土宇。会吐蕃悉抹逻及烛龙莽布支攻陷瓜沙,而节度使王君㚟新被杀,河湟震动。帝思将帅之才,遂除生御史中丞、河西道节度。大破戎虏,斩首七千级,开地九百里,筑三大城以遮要害。边人立石于居延山以颂之。归朝册勋,恩礼极盛。转吏部侍郎,迁户部尚书兼御史大夫。时望清重,群情翕习,大为时宰所忌,以飞语中之,贬为端州刺史。三年,征为常侍。未几,同中书门下平章事。与萧中令嵩、裴侍中光庭同执大政十余年,嘉谟密命,一日三接。献替启沃,号为贤相。同列害之,复诬与边将交结,所图不轨。下制狱。府吏引从至其门而急收之。生惶骇不测,谓妻子曰:「吾家山东,有良田五顷,足以御寒馁。何苦求禄?而今及此,思衣短褐、乘青驹,行邯郸道中,不可得也。」引刃自刎,其妻救之,获免。其罹者皆死,独生为中官保之,减罪死,投驩州。

数年,帝知冤,复追为中书令,封燕国公,恩旨殊异。生五子,曰俭、曰传、曰位、曰倜、曰倚,皆有才器。俭进士登第,为考功员外;传为侍御史;位为太常丞;倜为万年尉。倚最贤,年二十八,为左襄。其姻媾皆天下望族,有孙十余人。两窜荒徼,再登台铉。出入中外,徊翔台阁,五十余年,崇盛赫奕。性颇奢荡,甚好佚乐。后庭声色,皆第一绮丽。前后赐良田、甲第、佳人、名马,不可胜数。后年渐衰迈,屡乞骸骨,不许。病,中人候问,相踵于道。名医上药,无不至焉。将殁,上疏曰:

「臣本山东诸生,以田圃为娱。偶逢圣运,得列官叙。过蒙殊奖,特秩鸿私。出拥节旌,入升台辅。周旋中外,绵历岁时。有忝天恩,无裨圣化。负乘贻寇,履薄增忧。日惧一日,不知老至。今年逾八十,位极三公,钟漏并歇,筋骸俱耄。弥留沉顿,待时益尽。顾无成效,上答休明,空负深恩,永辞圣代。无任感恋之至,谨奉表陈谢。」

诏曰:

「卿以俊德,作朕元辅。出拥藩翰,入赞雍熙。升平二纪,实卿所赖。比婴疾疹,日谓痊平。岂斯沉痼,良用悯恻。今令骠骑大将军高力士就第候省。其勉加针石,为予自爱。犹冀无妄,期于有瘳。」

是夕,薨。

卢生欠伸而悟,见其身方偃于邸舍,吕翁坐其傍,主人蒸黄粱尚未熟,触类如故。生蹶然而兴,曰:「岂其梦寐也?」翁谓生曰:「人生之适,亦如是矣。」生怃然良久,谢曰:「夫宠辱之道,穷达之运,得丧之理,死生之情,尽知之矣。此先生所以窒吾欲也。敢不受教。」稽首再拜而去。

Source: 《枕中记》— Tang dynasty · Shen Jiji (沈既济). Public domain. Consolidated from 《文苑英华》via 文学鉴赏辞典 la.newdu.com and 古文岛 gushiwen.cn.

🏛️ Historical Context · 历史背景

About Tang chuanqi (唐传奇). The chuanqi — literally "transmissions of the marvelous" — are the great single-piece short fictions of the Tang dynasty, mostly written in literary Chinese by educated officials between the 7th and 10th centuries. They are the moment when Chinese narrative prose became fiction in the modern sense — with characters, psychology, plot architecture, and the willingness to invent. The Record of the Pillow (枕中记) is one of the foundational pieces of the form, alongside The Tale of the Curly-Bearded Stranger (虬髯客传), The Story of Yingying (莺莺传), and The Tale of Li Wa (李娃传).

About Shen Jiji (沈既济, c. 750–800). A historian, official, and writer of the middle Tang. He held positions at the imperial History Office and was known in his lifetime more for his historical scholarship than his fiction. He was promoted under the patronage of the chancellor Yang Yan (杨炎) and demoted again when Yang fell from power — a personal cycle of winning office, being purged, being rehabilitated that mirrors Lu Sheng's dream career so closely that it is hard not to read The Record of the Pillow as Shen Jiji writing his own life from above.

The source for the "millet dream" motif. Shen Jiji did not invent the basic device. A much shorter story exists in the 5th-century Records of the Hidden and Bright (幽明录, Youming Lu) by Liu Yiqing (刘义庆) about a temple keeper at Jiao Lake (焦湖庙) with a magic pillow whose crack a sleeper could climb into. Shen Jiji took that brief curiosity, gave it a real character, a real career arc, a real political setting tied to Tang Emperor Xuanzong's reign, and a real philosophical point — and turned a one-paragraph anomaly into a foundational work of Chinese fiction.

The afterlife of the story. The Record of the Pillow spawned the idiom huángliáng yī mèng (黄粱一梦), "a yellow millet dream," still in everyday use in modern Chinese to mean "an entire life of ambition, seen in retrospect to be insubstantial." It was rewritten into the Ming-dynasty playwright Tang Xianzu's drama The Record of Handan (邯郸记), one of his "Four Dreams of Linchuan" (临川四梦). It is also one of the most-cited sources of the Strange Tales tradition that we translate under the Cathay Tales banner — Liaozhai and Zibuyu both echo the pillow-into-other-life motif more than a thousand years later.

🍵 Tip