Valmiki Ramayana Sundara Kanda Sarga 54 Shloka 45
Original Shlokaस राक्षसांस्तान्सुबहूंश्च हत्वा वनं च भङ्क्त्वा बहुपादपं तत्। विसृज्य रक्षोभवनेषु चाग्निं जगाम रामं मनसा महात्मा।।5.54.45।।
1 source checked for this shloka
महात्मा a great self, सः he, सुबहून् many of them, तान् राक्षसान् the demons, हत्वा having killed, बहुपादपम् having many trees, तत् वनं च that garden also, भङ्क्त्वा after breaking, रक्षोभवनेषु in the mansions of demons, अग्निम् fire, विसृज्य after setting, मनसा in his mind, रामम् Rama, जगाम reached.
Great Hanuman, sought Rama's presence in his mind after killing many demons, breaking down many trees of the garden, and setting fire to the mansions of demons.