Tafsir Ibn Kathir -> Surah Al-Baqarah -> Allah's Appointed Term supercedes Everything

Allah said,

﴿وَمَا هُم بِضَآرِّينَ بِهِ مِنْ أَحَدٍ إِلاَّ بِإِذْنِ اللَّهِ﴾

(But they could not thus harm anyone except by Allah's leave). Sufyan Ath-Thawri commented, "Except by Allah's appointed term.'' Further, Al-Hasan Al-Basri said that,

﴿وَمَا هُم بِضَآرِّينَ بِهِ مِنْ أَحَدٍ إِلاَّ بِإِذْنِ اللَّهِ﴾

(But they could not thus harm anyone except by Allah's leave) means, "Allah allows magicians to adversely affect whomever He wills and saves whomever He wills from them. Sorcerers never bring harm to anyone except by Allah's leave.'' Allah's statement,

﴿وَيَتَعَلَّمُونَ مَا يَضُرُّهُمْ وَلاَ يَنفَعُهُمْ﴾

(And they learn that which harms them and profits them not.) means, it harms their religion and does not have a benefit compared to its harm.

﴿وَلَقَدْ عَلِمُواْ لَمَنِ اشْتَرَاهُ مَا لَهُ فِى الاٌّخِرَةِ مِنْ خَلَـقٍ﴾

(And indeed they knew that the buyers of it (magic) would have no (Khalaq) share in the Hereafter.) meaning, "The Jews who preferred magic over following the Messenger of Allah knew that those who commit the same error shall have no Khalaq in the Hereafter.'' Ibn `Abbas, Mujahid and As-Suddi stated that `no Khalaq' means, `no share.'

Allah then said,

﴿وَاتَّبَعُواْ مَا تَتْلُواْ الشَّيَـطِينُ عَلَى مُلْكِ سُلَيْمَـنَ وَمَا كَفَرَ سُلَيْمَـنُ وَلَـكِنَّ الشَّيْاطِينَ كَفَرُواْ يُعَلِّمُونَ النَّاسَ السِّحْرَ وَمَآ أُنزِلَ عَلَى الْمَلَكَيْنِ بِبَابِلَ هَـرُوتَ وَمَـرُوتَ وَمَا يُعَلِّمَانِ مِنْ أَحَدٍ حَتَّى يَقُولاَ إِنَّمَا نَحْنُ فِتْنَةٌ فَلاَ تَكْفُرْ فَيَتَعَلَّمُونَ مِنْهُمَا مَا يُفَرِّقُونَ بِهِ بَيْنَ الْمَرْءِ وَزَوْجِهِ وَمَا هُم بِضَآرِّينَ بِهِ مِنْ أَحَدٍ إِلاَّ بِإِذْنِ اللَّهِ وَيَتَعَلَّمُونَ مَا يَضُرُّهُمْ وَلاَ يَنفَعُهُمْ وَلَقَدْ عَلِمُواْ لَمَنِ اشْتَرَاهُ مَا لَهُ فِى الاٌّخِرَةِ مِنْ خَلَـقٍ وَلَبِئْسَ مَا شَرَوْاْ بِهِ أَنفُسَهُمْ لَوْ كَانُواْ يَعْلَمُونَ - وَلَوْ أَنَّهُمْ ءَامَنُواْ واتَّقَوْا لَمَثُوبَةٌ مِّنْ عِندِ اللَّهِ خَيْرٌ لَّوْ كَانُواْ يَعْلَمُونَ ﴾

(And how bad indeed was that for which they sold their own selves, if they but knew. And if they had believed and guarded themselves from evil and kept their duty to Allah, far better would have been the reward from their Lord, if they but knew!). Allah stated, o

﴿وَلَبِئْسَ﴾

(And how bad) meaning, what they preferred, magic, instead of faith and following the Messenger, if they but comprehend the advice.

﴿وَلَوْ أَنَّهُمْ ءَامَنُواْ واتَّقَوْا لَمَثُوبَةٌ مِّنْ عِندِ اللَّهِ خَيْرٌ﴾

(And if they had believed and guarded themselves from evil and kept their duty to Allah, far better would have been the reward from their Lord,) meaning, "Had they believed in Allah and His Messenger and avoided the prohibitions, then Allah's reward for these good deeds would have been better for them than what they chose and preferred for themselves.'' Similarly, Allah said,

﴿وَقَالَ الَّذِينَ أُوتُواْ الْعِلْمَ وَيْلَكُمْ ثَوَابُ اللَّهِ خَيْرٌ لِّمَنْ ءَامَنَ وَعَمِلَ صَـلِحاً وَلاَ يُلَقَّاهَآ إِلاَّ الصَّـبِرُونَ ﴾

(But those who had been given (religious) knowledge said: "Woe to you! The reward of Allah (in the Hereafter) is better for those who believe and do righteous good deeds, and this none shall attain except As-Sabirun (the patient in following the truth).'') (28:80).

﴿يَـأَيُّهَا الَّذِينَ ءَامَنُواْ لاَ تَقُولُواْ رَعِنَا وَقُولُواْ انظُرْنَا وَاسْمَعُواْ وَلِلكَـفِرِينَ عَذَابٌ أَلِيمٌ - مَّا يَوَدُّ الَّذِينَ كَفَرُواْ مِنْ أَهْلِ الْكِتَـبِ وَلاَ الْمُشْرِكِينَ أَن يُنَزَّلَ عَلَيْكُم مِّنْ خَيْرٍ مِّن رَّبِّكُمْ وَاللَّهُ يَخْتَصُّ بِرَحْمَتِهِ مَن يَشَآءُ وَاللَّهُ ذُو الْفَضْلِ الْعَظِيمِ ﴾

(104. O you who believe! Say not (to the Messenger ) Ra`ina but say Unzurna (make us understand) and hear. And for the disbelievers there is a painful torment.) (105. Neither those who disbelieve among the People of the Scripture (Jews and Christians) nor Al-Mushrikin (the idolaters) like that there should be sent down unto you any good from your Lord. But Allah chooses for His mercy whom He wills. And Allah is the Owner of great bounty.)