Biblically all that is written on Joseph is contained in the gospels of Mathew and Luke.
However, there are other written texts that recorded oral information passed down from the apostles and Jesus’s Mother Mary about Joseph, and about Mary’s childhood with her parents Anna and Joachim. Some of the stories are considered as “legends”, and relate to the holiness of Mary’s parents, Jesus’s grandparents. Also, about Joseph as a just man who was god-fearing in every way, and a descendant of the house of David. Joseph was selected to be the spouse of Mary from a group of men. One legend says that a lily appeared on Joseph’s staff indicating he was the one. For that reason many statues of Joseph show a lily at the top of his staff. The concept of a lily is rather far-fetched, but often such stories have some basis in truth. Perhaps a more realistic sign appeared to indicate Joseph as the preferred spouse for Mary. Such stories become lost in antiquity.
Certainly not found in the Biblical record.
All nice stories, but I am one of those who restrict their understanding to the Scriptures. The Scriptures are “God-breathed”, the rest is hearsay!