The exact outage probability (OP) of cognitive dual-hop relay networks equipped with a single amplify-and-forward (AF) relay and a selection combining receiver at the destination is derived under spectrum sharing constraint on a primary user. The tractable closed-form OP readily enables evaluation of system performance, which indicates the significance of using a relay in cognitive radio networks with a spectrum sharing approach. The proposed analysis is validated by numerical examples.