Sage Vashistha created this beautiful stotram in praise of lord Shiva. You can read it in Sanskrit on this website https://sanskritdocuments.org/doc_shiva/daaridryadahan.html?lang=sa
And, the stotra translated into English can be read from here.
I would like to know in what condition or situation sage Vashistha wrote this?
For e.g when Ravana created Shiva tandava stotram, he was praising Shiva for mercy as he was being crushed under Kailasha. Similarly, is there any background about this stotram?