When our mind works freely without any hindrance, and is at liberty to 'come' or to 'go', we attain Samadhi of Prajna, or liberation. Such a state is called the function of 'thoughtlessness'. But to refrain from thinking of anything, so that all thoughts are suppressed, is to be Dharma-ridden, and this is an erroneous view.
HuinengGood friends, how then are meditation and wisdom alike? They are like the lamp and the light it gives forth. If there is a lamp there is light; if there is no lamp there is no light. The lamp is the substance of light; the light is the function of the lamp. Thus, although they have two names, in substance they are not two. Meditation and wisdom are also like this.
Huineng