The text is a play on the biblical reference of God resting on the seventh day, with the humorous twist of Him taking an aspirin, suggesting that the act of creation was headache-inducing. It juxtaposes a religious context with a modern action for comedic effect, but does not rely on different meanings of a word or similar-sounding words.
And on the seventh day , He took an aspirin .