Naruto Shippuden | Sasuke Awakens Rinnegan
When Sasuke was stabbed by Madara, he was sent to the sage of six paths telepathicaly. During this time, Sasuke was given half of the sage of six paths power, the yin half. By combining the yin half of his chakra with the eternal Mangekyo Sharingan gave him the Rinnegan. He was later healed by Kabuto.