In Islamic tradition, Solomon is venerated as a prophet and a messenger of God, as well as a divinely appointed monarch, who ruled over the Kingdom of Israel. Solomon inherited his position from his father as the prophetic King of the Israelites. Unlike in the Bible where Solomon was granted an incomparable realm because God was impressed by his wish to have wisdom, the Quran states that Solomon prayed earnestly to God to grant him a kingdom which would be greater than any realm after him. As in Judaism, Islam recognizes Solomon as the son of King David, who is also considered a prophet and a king but refuses to accuse Solomon of idolatry, claiming instead that an enslaved jinn escaped his captivity and took over his kingdom and posed as Solomon, while others thought indeed that he became a ruthless king.