In line with the Qur'anQur'an 21:80 ↗وَعَلَّمۡنَٰهُ صَنۡعَةَ لَبُوسٖ لَّكُمۡ لِتُحۡصِنَكُم مِّنۢ بَأۡسِكُمۡۖ فَهَلۡ أَنتُمۡ شَٰكِرُونَ
And We taught him the making of shields for you, to protect you from your violence. Are you, then, appreciative?
The verse says God taught David the making of coats of mail, the handiwork from which the report says David ate.
In line with the Qur'anQur'an 34:11 ↗أَنِ ٱعۡمَلۡ سَٰبِغَٰتٖ وَقَدِّرۡ فِي ٱلسَّرۡدِۖ وَٱعۡمَلُواْ صَٰلِحًاۖ إِنِّي بِمَا تَعۡمَلُونَ بَصِيرٞ
“Make coats of armor, and measure the links well; and work righteousness. I am Observant of everything you do.”
The verse commands David to make full coats of mail and do good work, confirming his labor with his own hands.
In line with the Qur'anQur'an 62:10 ↗فَإِذَا قُضِيَتِ ٱلصَّلَوٰةُ فَٱنتَشِرُواْ فِي ٱلۡأَرۡضِ وَٱبۡتَغُواْ مِن فَضۡلِ ٱللَّهِ وَٱذۡكُرُواْ ٱللَّهَ كَثِيرٗا لَّعَلَّكُمۡ تُفۡلِحُونَ
Then, when the prayer is concluded, disperse through the land, and seek God’s bounty, and remember God much, so that you may prosper.
The verse tells believers to go out and seek God's bounty, the praise of earning by one's own work.