Similar I’ve heard “if you ask you might not get it. If you don’t ask, you definitely will not”
Even if the OP didn’t get their guitar, what did they lose by trying? Nothing. But since they were willing to put themself out just a little they ended up with something I’m sure they love.
There’s a fine line between this attitude and demanding from people to things you think you’re entitled to. But with the attitude OP had, I think this is a really healthy way to realize your hopes.