The poem "Cooking beans and burning bean sprouts" comes from Cao Zhi's "Seven Steps of Poetry" in the Wei and Jin Dynasties. The whole poem is as follows:
A seven-step poem
[Wei and Jin Dynasties] Cao Zhi
Cooking beans burns the bean sprouts, and the beans weep in the cauldron.
They are born from the same roots, so why rush each other? (Version 1)
Boil the beans to make soup, and drain the bean sprouts to make juice.
The leaves are burning under the cauldron, and the beans are weeping in the cauldron.
We are born from the same root, so why rush into conflict with each other? (Version 2)