A hunter with a starving family waits all night in a bilva tree by a pool, not knowing it is Shivaratri. Each time he draws his bow, water and leaves fall on a linga below. He spares a doe, her sister and a stag who promise to return, and at dawn they all come back. Shiva appears, names him Guha, and stays there as Vyadheshvara.
Gurudruha, a hunter whose family is starving, hunts all day on Shivaratri without knowing it. At night he climbs a bilva tree by a pool with a pot of water. A doe comes in the first watch; as he aims, water and leaves fall on a linga below. She swears to return after seeing her young, and he lets her go; so too her sister and the stag in the next watches. At dawn the deer family returns together. He spares them, Shiva appears, names him Guha and promises Rama will visit him, and stays there as Vyadheshvara.
King Chitrabhanu, keeping the fast, tells a sage of his past life as the hunter Suswara. Benighted in the forest with a dead deer, he sat sleepless in a bilva tree, weeping for his family and dropping leaves, which fell with his tears on a linga. At home he fed a hungry stranger before himself. At his death Shiva's messengers took him to Shiva's heaven, and he was reborn a king.
What is different here:
The hunter is the king's past life; no promising deer.
Sources: Shiva Purana, Koti Rudra Samhita 40, the hunter and Shivaratri, English translation (Wisdom Library); King Chitrabhanu and the Shivaratri fast (vrata book retellings; Hindu Blog; Isha); Maha Shivaratri — Wikipedia