Surah Saad of the Quran talks about the main message of all Prophets and Messengers. They came to preach Truth. Some people become arrogant when they have power. But Allah gave the examples of Dawood and Sulaiman who were powerful kings and great prophets. Their riches did not corrupt them.