1 Chronicles 11:6

And he said, "Whoever shall strike the Jebusites first, shall be ruler and commander." And so Joab, the son of Zeruiah, ascended first, and he was made the leader

Other versions

King James Version

And David said, Whosoever smiteth the Jebusites first shall be chief and captain. So Joab the son of Zeruiah went first up, and was chief.

English Standard Version

David said, "Whoever strikes the Jebusites first shall be chief and commander." And Joab the son of Zeruiah went up first, so he became chief.

New International Version

David had said, "Whoever leads the attack on the Jebusites will become commander-in-chief." Joab son of Zeruiah went up first, and so he received the command.