Bhagavan Sri Ramana Maharshi states in his text ‘Who am I?’:
Question 26. What is the relation between desirelessness (nirasa) and wisdom (jnana)?
Sri Ramana Maharshi: Desirelessness is wisdom. The two are not different; they are the same. Desirelessness is refraining from turning the mind towards any object. Wisdom means the appearance of no object. In other words, not seeking what is other than the Self is detachment or desirelessness; not leaving the Self is wisdom.
The above was taken from the question and answer version of ‘Who am I?’. Note that the Sanskrit word Jnana, literally meaning knowledge or wisdom, is a synonym for Self-Realisation when used in spiritual texts. In the alternate essay version of ‘Who am I?’, which is the version Ramana wrote himself, the same essential teachings are given but phrased slightly differently. Here is this particular teaching from the essay version:
Not attending to what-is-other (anya, that is, to any second or third person object) is non-attachment (vairagya) or desirelessness (nirasa); not leaving Self is knowledge (jnana). In truth, these two (desirelessness and knowledge) are one and the same.
In Talks with Sri Ramana Maharshi, talk number 502, Ramana states the following:
There is room for kama (desire) so long as there is an object apart from the subject (i.e., duality). There can be no desire if there is no object. The state of no-desire is moksha.
In Guru Vachaka Kovai, verse 149, Ramana States:
149. The non-dual experience will only be attained by those who have completely given up desires. For those with desires, it is far, far away. Hence it is proper for those with desires to direct their desires towards God, who is desireless, so that through desire for God the desires that arise through the delusion that objects exist and are different from oneself will become extinct.
In verses 378-9 Ramana states:
378. Except for the one who has completely cut the tie of desires, the false appearance [that he is a suffering jiva] will not cease. Therefore, without any hesitation, one should cut even the desire for the great Divine Happiness.
379. O foolish mind who is suffering due to the desire for the petty pleasures of this world and of the next, if you remain quiet [i.e. without desire] you will certainly attain that State of Bliss which surely transcends the pleasures of these two.
As always, Ramana’s teachings are in line with the traditional Vedanta texts such as the writing of Shankara and the Upanishads. I have written some other posts that demonstrate this point, see below: