The Command to be Good and Dutiful to Parents
Allah's saying;
وَوَصَّيْنَا الاِْنسَانَ بِوَالِدَيْهِ حُسْنًا
And We have enjoined on man to be dutiful to his parents;
Allah commands His servants to be dutiful to parents, after urging them to adhere to belief in His Tawhid, because a person's parents are the cause of his existence. So he must treat them with the utmost kindness and respect, his father for spending on him and his mother because of her compassion for him.
Allah says;
وَقَضَى رَبُّكَ أَلاَّ تَعْبُدُواْ إِلاَّ إِيَّـهُ وَبِالْوَلِدَيْنِ إِحْسَـناً إِمَّا يَبْلُغَنَّ عِندَكَ الْكِبَرَ أَحَدُهُمَا أَوْ كِلَهُمَا فَلَ تَقُل لَّهُمَأ أُفٍّ وَلَا تَنْهَرْهُمَا وَقُل لَّهُمَا قَوْلاً كَرِيمًا
وَاخْفِضْ لَهُمَا جَنَاحَ الذُّلِّ مِنَ الرَّحْمَةِ وَقُل رَّبِّ ارْحَمْهُمَا كَمَا رَبَّيَانِى صَغِيرًا
And your Lord has decreed that you worship none but Him. And that you be dutiful to your parents. If one of them or both of them attain old age in your life, say not to them a word of disrespect, nor shout at them, but address them in terms of honor. And lower unto them the wing of submission and humility through mercy, and say;"My Lord! Bestow on them Your mercy as they did bring me up when I was young." (17;23-24)
Although Allah orders us to show kindness, mercy and respect towards them in return for their previous kindness, He says;
وَإِن جَاهَدَاكَ لِتُشْرِكَ بِي مَا لَيْسَ لَكَ بِهِ عِلْمٌ فَلَإ تُطِعْهُمَا
but if they strive to make associate with Me, which you have no knowledge of, then obey them not.
meaning, if they are idolators, and they try to make you follow them in their religion, then beware of them, and do not obey them in that, for you will be brought back to Me on the Day of Resurrection, and Allah will reward you for your kindness towards them and your patience in adhering to your religion.
إِلَيَّ مَرْجِعُكُمْ فَأُنَبِّيُكُم بِمَا كُنتُمْ تَعْمَلُونَ
Unto Me is your return and I shall tell you what you used to do.
It is Allah Who will gather you with the group of the righteous, not with the group of your parents, even though you were the closest of people to them in the world. For a person will be gathered on the Day of Resurrection with those whom he loves, meaning, religious love.
Allah says;
وَالَّذِينَ امَنُوا وَعَمِلُوا الصَّالِحَاتِ لَنُدْخِلَنَّهُمْ فِي الصَّالِحِينَ