Srimad Bhagavatam Canto 10, Chapter 18, Text 18

SB 10.18.18

tam vidvan api dasarho
 bhagavan sarva-darsanah
anvamodata tat-sakhyam
 vadham tasya vicintayan
 
Translation: 
 
Since the Supreme Lord Krsna, who had appeared in the Dasarha dynasty, sees everything, He understood who the demon was. Still, the Lord pretended to accept the demon as a friend, while at the same time seriously considering how to kill him.
Srimad Bhagavatam Canto 10, Chapter 18, Text 17
Srimad Bhagavatam Canto 10, Chapter 18, Text 19