Srimad Bhagavatam Canto 04, Chapter 06, Text 40

SB 4.6.40

sa tupalabhyagatam atma-yonim
surasuresair abhivanditanghrih
utthaya cakre sirasabhivandanam
arhattamah kasya yathaiva visnuh
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Lord Siva’s lotus feet were worshiped by both the demigods and demons, but still, in spite of his exalted position, as soon as he saw that Lord Brahma was there among all the other demigods, he immediately stood up and offered him respect by bowing down and touching his lotus feet, just as Vamanadeva offered His respectful obeisances to Kasyapa Muni.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Kasyapa Muni was in the category of the living entities, but he had a transcendental son, Vamanadeva, who was an incarnation of Visnu. Thus although Lord Visnu is the Supreme Personality of Godhead, He offered His respects to Kasyapa Muni. Similarly, when Lord Krsna was a child He used to offer His respectful obeisances to His mother and father, Nanda and Yasoda. Also, at the Battle of Kuruksetra, Lord Krsna touched the feet of Maharaja Yudhisthira because the King was His elder. It appears, then, that the Personality of Godhead, Lord Siva and other devotees, in spite of their being situated in exalted positions, instructed by practical example how to offer obeisances to their superiors. Lord Siva offered his respectful obeisances to Brahma because Brahma was his father, just as Kasyapa Muni was the father of Vamana.
Srimad Bhagavatam Canto 04, Chapter 06, Text 39
Srimad Bhagavatam Canto 04, Chapter 06, Text 41