In exile (1031–1046)
According to medieval chronicles, Vazul was blinded during the reign of his cousin, King Stephen I, the first Christian monarch of Hungary (r. 997–1038). The king ordered Vazul's mutilation in 1031, after the death of Emeric, his only son who survived infancy. The contemporary Annals of Altaich contends that the king himself ordered his kinsman's mutilation in an attempt to ensure a peaceful succession to his own sister's son, Peter Orseolo. The same source adds that the king expelled his blinded cousin's three sons from Hungary. According to the contrasting report of the Hungarian chronicles, King Stephen wanted to save the young princes' lives from their enemies in the royal court and "counselled them with all speed" to depart from Hungary.
Having his own son died in his father's life, and having no other sons, Stephen, the king of good memory, who was the maternal uncle of [Peter Orseolo], adopted and appointed him as heir to his kingdom. For his kinsman's son disagreed with him on this, [Stephen] had him blinded, even if he was worthier of the kingdom, and sent his little sons into exile.
Exiled from Hungary, Andrew and his brothers settled in the court of Duke Oldřich of Bohemia (r. 1012–1033). Here they came across King Mieszko II of Poland (r. 1025–1031, 1032–1034), who likewise had found refuge in Bohemia after his enemies had expelled him from his kingdom. The Polish monarch regained his crown and returned to Poland in 1032. Andrew, Béla and Levente, whose "condition of life was poor and mean" in Bohemia, followed Mieszko II, who received them "kindly and honourably" in Poland. After the youngest of them, Béla, married Richeza, a daughter of Mieszko II, Andrew and Levente decided to depart from Poland because they "felt that they would be living in Poland under their brother's shadow", according to Simon of Kéza.
Hungarian chronicles have preserved a story full of fabulous or anachronistic details of the two brothers' ensuing wanderings. For instance, they narrate that Andrew and Levente were captured by Cumans, but the latter only arrived in Europe in the 1050s.
Having received permission from [the Polish monarch, Andrew and Levente] left their brother [Béla] behind and made their way to the King of Lodomeria, who did not receive them. Since they had nowhere to lay their head, they went from there to the [Cumans]. Seeing that they were persons of excellent bearing, the [Cumans] thought that they had come to spy out the land, and unless a captive Hungarian had recognized them, they should certainly have killed them; but they kept them with them for some time. Then they departed thence to Russia.
After enduring many hardships, Andrew and Levente established themselves in the court of Yaroslav the Wise, Grand Prince of Kiev (r. 1019–1054) in the late 1030s. The grand prince gave his daughter Anastasia in marriage to Andrew. Kristó writes that Andrew, who had up to that time remained pagan, was baptized on this occasion.