This title may look a little old & I don’t know whether it was mentioned in the story or not but I really wanted to know the answer since I know Madara originally had sharingan not rinnengan & he said to Konan that rinnengan was given to Nagato by him.