SRD:Ring of Three Wishes

Three Wishes: This ring is set with three rubies. Each ruby stores a wish spell, activated by the ring. When a wish is used, that ruby disappears. For a randomly generated ring, roll 1d3 to determine the remaining number of rubies. When all the wishes are used, the ring becomes a nonmagical item.

Strong evocation (if miracle is used); CL 20th; Forge Ring, wish or miracle; Price 97,950 gp; Cost 11,475 gp + 15,918 XP.