That sounds like Baldurs Gate II that you are talking about.
I really have never heard of any stories behind casting magic in the city.
But in Baldur's Gate II, there is a way to cast magic in the city, but it requires about 5k gold...so Im guessing you got the two confused.
