How to ask for a customer referral

Referrals are the most powerful way to acquire new customers – but how do you gracefully ask for a customer referral and get them to say yes?