Valmiki Ramayana Sundara Kanda Sarga 48 Shloka 51
Original Shlokaअस्त्रेण हनुमान्मुक्तो नात्मानमवबुध्यत। कृष्यमाणस्तु रक्षोभि स्तौश्च बन्धैर्निपीडितः।।5.48.51।।
1 source checked for this shloka
अस्त्रेण by Astra, मुक्तः was released, हनुमान् Hanuman, तैः those, रक्षोभिः by the ogres, कृष्यमाणः dragged, बन्धै: was tied, निपीडितः hurting him, आत्मानम् himself, न अवबुध्यत he did not know
Though binding and dragging by the ogres had hurt Hanuman, he on his part did not know that he had been released from Brahmastra.