What "kind" of funny are you aiming for here?
Surrealist humor? Read authors like Eugene Ionesco (especially if you can read them in his native French, though most translations I've seen do him justice), Harold Pinter (primary inspiration for the Monty Pythons), Douglas Adams (the Dirk Gently books mostly), or Lewis Carroll (especially
The Hunting of the Snark, an Agony in Eight Fits). Also Grant Morrison's run on
Doom Patrol falls pretty much into this too, though he also hit some very serious beats.
Marvel Cinematic Universe Humor? Read authors like Peter A. David, or any run of
Spider-Man, Blue Devil (it was a DC title but still...), or the late "bronze age" runs of books like
The Defenders (especially when it transitioned to
The New Defenders - though the book right before this shift was some of the best surrealist humor ever in a comic).
Anything goes humor? Sir Terry Pratchett is probably the best here, though Douglas Adams pulled it off in the Hitchhiker's Guide books.
Look for the kind of humor you want to write, find authors who do it well, at least in your eyes if not objectively, and try to figure out how it worked when they did it, and why. Then try to do the same thing without copying them, or, if you must, copy them in a way that feels a little different.
For example, in one of the first Star Trek: The Next Generation novels Peter A. David wrote, there is an exchange that runs something like this (I may have a few words wrong, as I'm going by a decade-old memory).
Geordie looked over at the bar and smiled. "This bartender is amazing. Just ask him anything, and he'll know the answer."
Riker chuckled. "Okay. Hey, bartender?"
The bartender looked up.
"What is the average flight speed of a sparrow?"
Without hesitation, the bartender replied: "African or European?"
Riker turned to Geordie and said: "He IS good."