About the story of deliberation (I already know the story of Jia Dao, needless to say)
Liu Gong Jia Hua records: Jia Dao first went to Chang'an to take the imperial examination. One day, he rode on the donkey's back and chanted a poem: "it's quiet at night, birds perch on the branches of the pond, monks come back at night and knock on the door of the temple in the moonlight."