Mark Twain said this quote

Heaven goes by favor. If it went by merit, you would stay out and your dog would go in.