The saloka by Kabir and the story of Dhanna actually are intertwined. Kabir ji: Do not stray even once! Dhanna: The story of one who never strayed.
__________________
ਜੇ ਕੋ ਮੂੰ ਉਪਦੇਸੁ ਕਰਤੁ ਹੈ ਤਾ ਵਣਿ ਤ੍ਰਿਣਿ ਰਤੜਾ ਨਾਰਾਇਣਾ ॥
jae ko moon oupadhaes karath hai thaa van thrin ratharraa naaraaeinaa ||
If someone is going to teach me something, let that be that the Lord is pervading the forests and fields.