Abbas - Tanwîr al-Miqbâs min Tafsîr Ibn ‘Abbâs
(Let not their wealth) the abundance of their wealth (nor their children) nor the abundance of their children (please thee! Allah purposeth only to punish them thereby in the world) and in the Hereafter, (and that their souls shall pass away while they are disbelievers) and that they shall die while they are unbelievers.
And let not their wealth and their children please you; God desires only to chastise them thereby in this world, and that their souls should depart while they are disbelievers.
Maududi - Sayyid Abul Ala Maududi - Tafhim al-Qur'an
This verse was sent down to prevent the Holy Prophet from saying funeral prayers for 'Abdullah bin Ubayy, the ringleader of the hypocrites, who died a short while after the Tabuk Expedition. His son 'Abdullah who was a sincere Muslim called on the Holy Prophet and requested him to give his shirt for his father's shroud. The Holy Prophet very generously granted his request. Then he begged the Holy Prophet to lead his father's funeral prayer. The Holy Prophet agreed to this also but Hadrat 'Umar very respectfully requested him repeatedly not to do so, saying, "O Prophet of Allah! will you say funeral prayer for a person who was guilty of such and such crimes and sins"? The Holy Prophet, who was a blessing both for friends and for foes, got ready to say funeral prayer even for that man who was a deadly enemy of Islam. At last when he stood up to lead the funeral prayer, this verse was sent down to prevent him from this by a direct Command from God, in accordance with the changed policy declared in v. 73 which forbade to do anything that might encourage the hypocrites among the Muslims.
The above incident led to the formulation of the regulation that the leaders and prominent people from among the Muslims should neither lead nor offer the funeral prayers of the sinners against Islam or for those notorious for their disobedience to Islam. After this, whenever a request was made to the Holy Prophet for a funeral prayer, he would first inquire about the conduct of the deceased person. If he came to know that he was a bad person, he would say to his people, "You may perform his burial just as you like".