And Musa said;"If you disbelieve, you and all on earth together, then verily, Allah is Rich (free of all needs), Worthy of all praise."
Allah does not need the gratitude of His servants, and He is worthy of all praise even if the disbelievers disbelieve in Him,
إِن تَكْفُرُواْ فَإِنَّ اللَّهَ غَنِىٌّ عَنكُمْ
If you disbelieve, then verily, Allah is not in need of you. (39;7)
and,
فَكَفَرُواْ وَتَوَلَّواْ وَّاسْتَغْنَى اللَّهُ وَاللَّهُ غَنِىٌّ حَمِيدٌ
So they disbelieved and turned away. But Allah was not in need (of them). And Allah is Rich (free of all needs), Worthy of all praise. (64;6)
In his Sahih, Muslim recorded that Abu Dharr said that the Messenger of Allah said that his Lord the Exalted and Most Honored said,
يَا عِبَادِي
لَوْ أَنَّ أَوَّلَكُمْ وَاخِرَكُمْ وَإِنْسَكُمْ وَجِنَّكُمْ كَانُوا عَلَى أَتْقَى قَلْبِ رَجُلٍ وَاحِدٍ مِنْكُمْ مَا زَادَ ذَلِكَ فِي مُلْكِي شَيْيًا
يَا عِبَادِي
لَوْ أَنَّ أَوَّلَكُمْ وَاخِرَكُمْ وَإِنْسَكُمْ وَجِنَّكُمْ كَانُوا عَلَى أَفْجَرِ قَلْبِ رَجُلٍ وَاحِدٍ مِنْكُمْ مَا نَقَصَ ذَلِكَ فِي مُلْكِي شَيْيًا
يَا عِبَادِي
لَوْ أَنَّ أَوَّلَكُمْ وَاخِرَكُمْ وَإِنْسَكُمْ وَجِنَّكُمْ قَامُوا فِي صَعِيدٍ وَاحِدٍ فَسَأَلُونِي فَأَعْطَيْتُ كُلَّ إِنْسَانٍ مَسْأَلَتَهُ مَا نَقَصَ ذَلِكَ مِنْ مُلْكِي شَيْيًا إِلاَّ كَمَا يَنْقُصُ المِخْيَطُ إِذَا أُدْخِلَ الْبَحْر
O My servants!
If the first and the last among you, mankind and Jinns among you, had the heart of the most pious and righteous man among you, that will not increase my kingdom in the least.
O My servants!
If the first and the last among you, mankind and the Jinns among you, had the heart of the most wicked man among you, that will not decrease My kingdom in the least.
O My servants!
If the first and the last among you, the mankind and Jinns among you, stood in one flat area and each asked me (what they wish), and I gave each one of them what they asked, that will not decrease My kingdom except by that which the needle carries (of water) when inserted in the ocean."
Verily, all praise and glory are due to Allah, the Rich (free of need), the Worthy of all praise