心枕南柯
[xīn zhĕn nán kē]
It's derived from an ancient Chinese legend where 'Nan'ke' (South柯means the south tree branch) represents an illusory realm one dreamt of after falling asleep resting on a tree root by the roadside. It implies that some success or glory in the material world may be just like dreams that will eventually turn to nothing.