Rule 4.1b(2) says you must not make a stroke with a club being used by anyone else playing on the course, even someone in a different group or competition. If you do, take that club out of play before your next stroke.
In stroke play the penalty is two strokes for each hole where it happened, up to four strokes in the round. In match play the match score is adjusted by one hole for each hole affected, up to two holes.
How Golfers Say It
"Can I use your sand wedge? Actually no, that's a penalty."
"We're playing foursomes, so we can share a bag."
"Two shots for using his putter, max four for the round."
Origin
The Rule sits next to the 14-club limit in Rule 4.1b, which caps the clubs you start with and stops you adding clubs from someone else's bag.
Rules & Context
Partner formats are the exception. In Foursomes and Four-Ball, partners may share clubs as long as they don't have more than 14 between them (Rules 22.5 and 23.7).
Neil's Take
“
Casual round, ask your group. In a competition, leave your buddy's clubs in his bag.
Frequently Asked Questions
Can I borrow my playing partner's putter?
Not in individual play. Making a stroke with it is a penalty.
Can partners share clubs?
Yes, in Foursomes and Four-Ball, if they have 14 or fewer clubs between them.
What's the penalty in stroke play?
Two strokes for each hole where it happened, four at most.
Sources: R&A, Rules of Golf (Rule 4)