Riding with my wife is more rewarding than riding with anyone fast. She and I ride together on the uphill and I wait for her in various spots along the trail when we point downward. (It's easier to hold back when pointed up.) The last time we went riding she cleaned a left-handed switchback...on a 29er...and she's short. Her first attempt was unsuccessful. I recommended a line for her and she got it on her second try. The feeling of accomplishment from seeing her make that switchback matched when I clean a new obstacle on my own. Plus I wait a lot less for her now on the downhill than when we first started riding together. And, truth be told, I don't really have to holdback to ride with her on the uphill. I like to think it's because she's on a Superfly and weighs 60 lbs. less than me.
Her attitude helps me to change mine. She doesn't need to try to impress me and she knows it. She tried the switchback because she wanted to clean it. She holds herself back on the downhill because she rides where she feels safe. I usually push myself until I crash. I find what my limits are and she sets hers. She gets faster because she allows herself to. I get faster because I force myself to. She grows exponentially every time she rides. I wash out on a wet rock and it takes me a while to recover because I have to heal and overcome the mental block that was placed when I went down.
Try riding with a beginner. It's a different kind of fun. You'll need to adjust how you look at the ride. You may even need to adjust the course you ride. The person you're riding with will appreciate it. And if you're riding with your girlfriend/boyfriend/spouse, you may stay together after the first ride. Just make sure not to push them too hard, so they enjoy it. They'll see why they would want to be pushed or even push themselves. Some of us forget that. We grew up knowing how to ride a bike the way we do and don't remember when a rock garden could have looked like anything except a good time. The trail that you think is beginner friendly could be notably more technical than you perceive it. So get out and ride with someone new, but be prepared to adjust your agenda.