“One morning I shot an elephant in my pajamas. How he got into my pajamas, I'll never know.”
— Groucho Marx
Simplified Meaning:
The speaker is making a funny joke by saying it sounds like the elephant was wearing the speaker's pajamas, even though that's not possible.