The Wizard of Oz by Lynam Frank Baum Chapter 23 Page 6

Then, having used up the powers of the Golden Cap, I shall give it to the King of the Monkeys, that he and his band may thereafter be free for evermore.”

The Scarecrow and the Tin Woodman and the Lion now thanked the Good Witch earnestly for her kindness; and Dorothy exclaimed:

“You are certainly as good as you are beautiful! But you have not yet told me how to get back to Kansas.”

“Your Silver Shoes will carry you over the desert,” replied Glinda. “If you had known their power you could have gone back to your Aunt Em the very first day you came to this country.”

“But then I should not have had my wonderful brains!” cried the Scarecrow. “I might have passed my whole life in the farmer's cornfield.”