Srimad Bhagavatam Canto 10, Chapter 47, Text 34

SB 10.47.34

yat tv aham bhavatinam vai
 dure varte priyo drsam
manasah sannikarsartham
 mad-anudhyana-kamyaya
 
Translation: 
 
But the actual reason why I, the beloved object of your sight, have stayed far away from you is that I wanted to intensify your meditation upon Me and thus draw your minds closer to Me.
 
Purport: 
 
Sometimes that which is close to our eyes is far from our heart and mind, and conversely absence makes the heart grow fonder. Although apparently going far away from the gopis, Lord Krsna was bringing them closer to Him on the spiritual platform.
Srimad Bhagavatam Canto 10, Chapter 47, Text 33
Srimad Bhagavatam Canto 10, Chapter 47, Text 35