وَاعْلَمُواْ أَنَّمَا أَمْوَالُكُمْ وَأَوْلَادُكُمْ فِتْنَةٌ
And know that your possessions and your children are but a trial.
from Him to you. He grants these to you so that He knows which of you will be grateful and obedient to Him, or become busy with and dedicated to them instead of Him.
Allah said in other Ayat,
إِنَّمَأ أَمْوَلُكُمْ وَأَوْلَـدُكُمْ فِتْنَةٌ وَاللَّهُ عِنْدَهُ أَجْرٌ عَظِيمٌ
Your wealth and your children are only a trial, whereas Allah! With Him is a great reward. (64;15)
وَنَبْلُوكُم بِالشَّرِّ وَالْخَيْرِ فِتْنَةً
And We shall make a trial of you with evil and with good. (21;35)
يأَيُّهَا الَّذِينَ ءَامَنُواْ لاأَ تُلْهِكُمْ أَمْوَلُكُمْ وَلاأَ أَوْلَـدُكُمْ عَن ذِكْرِ اللَّهِ وَمَن يَفْعَلْ ذَلِكَ فَأُوْلَـيِكَ هُمُ الْخَـسِرُونَ
O you who believe! Let not your properties or your children divert you from the remembrance of Allah. And whosoever does that, then they are the losers. (63;9)
and,
يأَيُّهَا الَّذِينَ ءَامَنُواْ إِنَّ مِنْ أَزْوَجِكُمْ وَأَوْلـدِكُمْ عَدُوّاً لَّكُمْ فَاحْذَرُوهُمْ
O you who believe! Verily, among your wives and your children there are enemies for you (who may stop you from the obedience of Allah); therefore beware of them! (64;14)
Allah said next,
وَأَنَّ اللّهَ عِندَهُ أَجْرٌ عَظِيمٌ
And that surely with Allah is a mighty reward.
Therefore, Allah's reward, favor and Paradise are better for you than wealth and children.
Certainly, among the wealth and children there might be enemies for you and much of them avail nothing. With Allah alone is the decision and sovereignty in this life and the Hereafter, and He gives tremendous rewards on the Day of Resurrection.
In the Sahih, there is a Hadith in which the Messenger of Allah said,
ثَلَثٌ مَنْ كُنَّ فِيهِ وَجَدَ بِهِنَّ حَلَوَةَ الاِْيمَانِ
مَنْ كَانَ اللهُ وَرَسُولُهُ أَحَبَّ إِلَيْهِ مِمَّا سِوَاهُمَا
وَمَنْ كَانَ يُحِبُّ الْمَرْءَ لَا يُحِبُّهُ إِلاَّ للهِ
وَمَنْ كَانَ أَنْ يُلْقَى فِي النَّارِ أَحَبَّ إِلَيْهِ مِنْ أَنْ يَرْجِعَ إِلَى الْكُفْرِ بَعْدَ إِذْ أَنْقَذَهُ اللهُ مِنْه
There are three qualities for which whomever has them, he will have tasted the sweetness of faith. They are;
whoever Allah and His Messenger are dearer to him than anyone else,
whoever loves a person for Allah's sake alone, and
whoever prefers to be thrown in fire rather than revert to disbelief, after Allah has saved him from it.
Therefore, loving the Messenger of Allah comes before loving children, wealth and oneself.
In the Sahih, it is confirmed that he said,
وَالَّذِي نَفْسِي بِيَدِهِ لَاا يُوْمِنُ أَحَدُكُمْ حَتَّى أَكُونَ أَحَبَّ إِلَيْهِ مِنْ نَفْسِهِ وَأَهْلِهِ وَمَالِهِ وَالنَّاسِ أَجْمَعِين
By He in Whose Hand is my soul! None of you will have faith unless I become dearer to him than himself, his family, his wealth and all people