Srimad Bhagavatam Canto 11, Chapter 29, Text 46

SB 11.29.46

 na saknuvams tam parihatum aturah
krcchram yayau murdhani bhartr-paduke
 bibhran namaskrtya yayau punah punah
Greatly fearing separation from Him for whom he felt such indestructible affection, Uddhava was distraught, and he could not give up the Lord’s company. Finally, feeling great pain, he bowed down to the Lord again and again, placed the slippers of his master upon his head, and departed.
According to the Srimad-Bhagavatam (3.4.5), while Uddhava was enroute to Badarikasrama he heard about the Lord’s journey to Prabhasa. Turning back and following Lord Krsna from behind, he saw the Lord alone just after the withdrawal of the Yadu dynasty. After being again mercifully instructed by the Personality of Godhead (along with Maitreya, who had just arrived), Uddhava felt his knowledge of the truth reawaken, and then, by the order of the Lord, he went on his way.
Srimad Bhagavatam Canto 11, Chapter 29, Text 45
Srimad Bhagavatam Canto 11, Chapter 29, Text 47