Wish granting is a popular concept in fiction with numerous tropes, and several magical creatures and artifacts acquiescing to these desires, typically genies and fairies, but witches and wishing wells are not unheard of.
The wishes are commonly defined by the way they're granted. Hopefully they'll be carried out as you intended
, but watch out if your words are taken literally
, and woe betide you if they're deliberately misinterpreted
See also Deal with the Devil
for outright infernal entities who will grant your wish, although they usually have a rather demanding price
Speculative Fiction Tropes