Surah An-Nahl — Ayah 107 (16:107)
ذَٰلِكَ بِأَنَّهُمُ ٱسۡتَحَبُّواْ ٱلۡحَيَوٰةَ ٱلدُّنۡيَا عَلَى ٱلۡأٓخِرَةِ وَأَنَّ ٱللَّهَ لَا يَهۡدِي ٱلۡقَوۡمَ ٱلۡكَٰفِرِينَ ١٠٧
English translation (Saheeh International)
That is because they preferred the worldly life over the Hereafter and that Allāh does not guide the disbelieving people.
Brief commentary
Such apostasy from Islam is because they gave preference to the trivial things of this world as a benefit for their disbelief in the Hearafter and because Allah does not guide to faith people who disbelieve, but He abandons them.