Shiva Purana
मण्डपे दह्यमाने तु सहसोत्थाय संभ्रमात्॥ मर्कटं मोचयामास सा वेश्या तत्र बन्धनात् ॥ ३३॥
When the platform was burning the prostitute got up suddenly in her bewilderment and let the monkey free untying it.
english translation
maNDape dahyamAne tu sahasotthAya saMbhramAt॥ markaTaM mocayAmAsa sA vezyA tatra bandhanAt ॥ 33॥
hk transliteration by Sanscript