It is located north of Medina and Mecca is south and Muhammad arrived at Quba which is south, so it is geographically impossible that it was sung at the Hijrah, some say. The valley of Wada was the place where people would walk with their loved ones who were travelling and say goodbye. Some others, disagree by saying the second line reads 'From the valley of Wada' (ﻣﻦ ﺛﻨﻴﺎﺕ ﺍﻟﻮﺩﺍﻉ).
Many sources claim it was first sung as he sought refuge there after being forced to leave his hometown of Mecca. Talaʽ al-Badru ʽAlaynā ( Arabic: طلع البدر علينا) is a traditional Islamic poem known as nasheed that the Ansar sang for the Islamic prophet Muhammad upon his arrival at Medina.
Traditional Islamic song and nasheed written in 622