One verse

Srimad Bhagavatam 10.24.2

10.24.2

तदभिज्ञोऽपि भगवान् सर्वात्मा सर्वदर्शन: । प्रश्रयावनतोऽपृच्छद् वृद्धान् नन्दपुरोगमान् ॥ २ ॥

tad-abhijño ’pi bhagavān sarvātmā sarva-darśanaḥ praśrayāvanato ’pṛcchad vṛddhān nanda-purogamān

tat-abhijñaḥ
being in full knowledge about it
api
although
bhagavān
the Supreme Lord
sarva-ātmā
the Supersoul within everyone’s heart
sarva-darśanaḥ
the omniscient Personality of Godhead
praśraya-avanataḥ
bowing down humbly
apṛcchat
He inquired
vṛddhān
from the elders
nanda-puraḥ-gamān
headed by Mahārāja Nanda

Being the omniscient Supersoul, the Supreme Lord Kṛṣṇa already understood the situation, yet He still humbly inquired from the elders, headed by His father, Nanda Mahārāja.