Sure Al-An'aam

6:112

وَكَذَٰلِكَ جَعَلْنَا لِكُلِّ نَبِىٍّ عَدُوًّۭا شَيَٰطِينَ ٱلْإِنسِ وَٱلْجِنِّ يُوحِى بَعْضُهُمْ إِلَىٰ بَعْضٍۢ زُخْرُفَ ٱلْقَوْلِ غُرُورًۭا ۚ وَلَوْ شَآءَ رَبُّكَ مَا فَعَلُوهُ ۖ فَذَرْهُمْ وَمَا يَفْتَرُونَ

Und so haben Wir jedem Propheten Feinde bestimmt: die Satane der Menschen und der Ginn, von denen die einen den anderen prunkende Worte eingeben in Trug und wenn dein Herr gewollt hätte, hätten sie es nicht getan; so lasse sie (stehen) mit dem, was sie an Lügen ersinnen -,

Tafsir 6:112

Just as I tested you with the hostility of these idolaters towards you, I tested every prophet before you. I made for each of them enemies of rebellious men and jinn, who used to whisper evil in the hearts of one another, beautifying falsehood in order to deceive them. If I willed them not to do so, they would not have done that; but I willed it as a test for them. So leave them to their fabrications of disbelief and falsehood, and pay no attention to them.