Lineal descent from Ra, whether by birth or by marriage, was claimed by all kings of Egypt at least since User-ka-f, first king of the V Dynasty, who was high priest of Ra at Heliopolis.
There is a myth on the birth of Hatshepsut.