Allaah (The Most High) said:

وَيَوۡمَ يَعَضُّ ٱلظَّالِمُ عَلَىٰ يَدَيۡهِ يَقُولُ يَـٰلَيۡتَنِى ٱتَّخَذۡتُ مَعَ ٱلرَّسُولِ سَبِيلاً۬

يَـٰوَيۡلَتَىٰ لَيۡتَنِى لَمۡ أَتَّخِذۡ فُلَانًا خَلِيلاً۬

لَّقَدۡ أَضَلَّنِى عَنِ ٱلذِّڪۡرِ بَعۡدَ إِذۡ جَآءَنِى‌ۗ وَڪَانَ ٱلشَّيۡطَـٰنُ لِلۡإِنسَـٰنِ خَذُولاً۬

”And (remember) the Day when the Zalim (wrong-doer) will bite at his hands, he will say: “Oh! Would that I had taken a path with the Messenger ( Muhammad ). Ah! Woe to me! Would that I had never taken so-and-so as a friend! He indeed led me astray from the Reminder (this Qur’an) after it had come to me. And Shaitaan (Satan) is ever a deserter to man in the hour of need.”

[25:27-29]