Sahih Muslim, Book 32, Hadith 78 (Muslim 4556)

Through the same chain of transmitters Shu'ba has narrated the same tradition in which he says that the Messenger of Allah (ﷺ) said (to Sa'd):

You have adjudged according to the command of God. And once he said: you have adjudged by the decision of a king.