To hear knocking in your dreams (or to see someone else knocking), suggests that your unconscious is trying to attract your attention to some aspect of yourself or to some waking situation.

A new opportunity – or money – may be presented to you.

If you were doing the knocking, the dream is warning you against loose talk and trusting in shady friends.