Looks like the Satanic Jesuit controlled Catholic Church told Copernicus what they wanted to hear.
Copernicus hesitated, but not (as is often claimed) due to fear of religious persecution, but because of the opposition of other astronomers over a new and radical rethinking of the cosmological model - or as he put it "the scorn which I had reason to fear on account of the novelty and unconventionality of my opinion".
His work was eventually published just after his death and dedicated to Pope Paul III.
So while it was not commissioned by anyone in particular, several scholars encouraged it and it was also strongly encouraged by a bishop, a cardinal and the Pope. This is contrary to the popular conception that the Church was somehow automatically opposed to scientific speculation and "persecuted" Copernicus. Far from persecuting him, they encouraged him. See Tim O'Neill's answer to Why was the Catholic Church so opposed to heliocentrism (for example, in the Renaissance)? Why did they not simply claim that God lived in the Sun, so we go around Him? for more details on the Church's reception of Copernicanism and the myths surrounding this subject.