Official or unofficial materials. Not necessarily a spell available to players; it could be a creature or item ability. Various people from the AD&D 2nd edition up to Planescape (primarily 90's) seem to remember such a spell, but I have not been able to find any TSR materials or endorsed / published materials with such a spell.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
I've heard this rumour come up before, and, being curious, followed it to its source: Page 79 of AD&D's Manual of the Planes. (This is the only origin my research turned up, but there may be others I'm not aware of.)
This page specified that Wish spells are actually granted by the nearest deity with the ability to do so, and that that deity was free to interpret or refuse to grant the wish as they saw fit. This detail rarely comes up on the Prime, but if you happen to be on an outer planes, knowing which gods make their kip locally could be a matter of life and death.
In any case, while this didn't remove the 'Wish' spell from the wizard spell list, it did tie it to the whims of the gods, making it distinctly more "divine" in nature than most spells wizards have access to. This led to many players thinking of Wish as a "divine spell" - though this shouldn't be confused with the cast-by-priest-types definition of "divine magic" used in third edition; Wish does not appear on any priest spell list that I've heard of.
I do not have my books handy, but I think that in BECMI DnD, at the Master rank (black book, levels 26-36), there was a Wish spell available to clerics and wizards. Both spells were basically the same Wish spell, even with the same writing if I remember correctly.