One of the Salaf asked his student:
What do you do when the devil whispers to you?' He replied: 'I fight him back.
'The teacher asked: 'What if he returns?' He replied: 'I fight him.
'The teacher asked again: 'What if he returns?
' The student repeated again: 'I fight him.'
The teacher said: 'This will take too long.
Do you see if you try to pass by some sheep and the shepherd's dog barks at you to prevent you from passing, what would you do?'
He replied: 'I would struggle to fight and repel him.
'The teacher replied: This would take too long.
Instead, seek the assistance of the sheep's owner, he would suffice you from him.'
📖:The Devil's Deceptions| Imām ibn al-Jawzī| Haitham Hamdan| Dār As-Sunnah| Page84|