The most popular source of this quote is from Ben Parker, Peter Parker's uncle who raised him. These are of course fictional characters and the writing would be that of Stan Lee.
However the phrase is of much more antiquated origins and quotes similar to it can be found all the way back to ancient Greece. One such would be Socrates 'rule worthy of might.'
Benjamin "Ben" Parker, usually called Uncle Ben, was a supporting
character in the Marvel Universe’s Spider-Man stories. He was created by writer Stan Lee and artist Steve Ditko.
Parker was the uncle and surrogate father of Peter Parker, Spider-Man’s alter ego. His death at the hands of a burglar that Spider-Man declined to pursue earlier forever propelled Peter into the role of superhero.