Did Hilbert publish general relativity field equation before Einstein?
1915
On November 25, nearly ten years after the foundation of special relativity, Einstein submitted his paper The Field Equations of Gravitation for publication, which gave the correct field equations for the theory of general relativity (or general relativity for short). Actually, the German mathematician David Hilbert submitted an article containing the correct field equations for general relativity five days before Einstein. Hilbert never claimed priority for this theory. [Bold mine.]
The Official Web Site of the Nobel Prize
Edit 1. But...
Many have claimed that in 1915 Hilbert discovered the correct field equations for general relativity before Einstein but never claimed priority. The article [11] however, shows that this view is in error. In this paper the authors show convincingly that Hilbert submitted his article on 20 November 1915, five days before Einstein submitted his article containing the correct field equations. Einstein's article appeared on 2 December 1915 but the proofs of Hilbert's paper (dated 6 December 1915) do not contain the field equations.
As the authors of [11] write:-
In the printed version of his paper, Hilbert added a reference to Einstein's conclusive paper and a concession to the latter's priority: "The differential equations of gravitation that result are, as it seems to me, in agreement with the magnificent theory of general relativity established by Einstein in his later papers". If Hilbert had only altered the dateline to read "submitted on 20 November 1915, revised on [any date after 2 December 1915, the date of Einstein's conclusive paper]," no later priority question would have arisen.
[11] L Corry, J Renn and J Stachel, Belated Decision in the Hilbert-Einstein Priority Dispute, Science 278 (14 November, 1997).
Source
Edit 2. Haha, butbut... :)
Source
Edit 3. Roundup.
Recent controversy, raised by a much publicized 1997 reading of Hilbert's proof-sheets of his article of November 1915, is also discussed [on pp. 11-13; presumed included in this answer].
Einstein and Hilbert had the moral strength and wisdom - after a month of intense competition, from which, in a final account, everybody (including science itself) profited - to avoid a lifelong priority dispute (something in which Leibniz and Newton failed). It would be a shame to subsequent generations of scientists and historians of science to try to undo their achievement.
Einstein and Hilbert: The Creation of General Relativity
The accepted answer by Keep these mind is thorough (+1 :-), and the answer to your question is probably "yes". However I would add that Hilbert acknowledged that he had merely added the last step to a long process and therefore that he had no claim to have invented General Relativity.
It's tempting to think of GR being revealed to the world in a single stunning paper, but this isn't the way it happened. Hilbert was only able to write down the correct action because of the previous publications by Einstein on his work leading up to that point.
There is no giant controversy about who discovered what first, and we don't know anything about who wrote what -- maybe Einstein broke his arm and forced someone else to write for him, I don't know. What we can talk about is their discovery of the relevant laws or the insights leading to the relevant laws.
The difference between Einstein and Hilbert is in their choice of axiom. This is akin to Einstein vs. Minkowski on the formulation of special relativity, for instance -- there is no doubt that Einstein first wrote his field equation, you can see this in "On the foundation of the General theory of relativity", but Hilbert first discovered the Einstein-Hilbert action, which is the more elegant formulation of the theory, because it directly states the link between curvature and gravity in a simple way, in terms of the latter's Lagrangian.