I have heard many Nihangs say that Dusht Daman(Guru Gobind Singh jee's previous life) were a Rishi but it is not correct Guru jee were a MONARCH.
Have a read of this excellent article
http://tisarpanth.blogspot.in/2013/06/the-legend-of-dusht-daman.html