Salamu Alaikum , wich version in salaah is correct
Alaika Ayyuhā An-Naby’
2.’As-Salāmu ‘Alan Naby’
a student of shaikh albani says as Salamu alan Naby is correct and he mentions ibn masud and other sahaba ,what is the opinion of the Ahnaaf ,
There are different forms of Tashahhud have been narrated from the Nabee of Allaah ﷺ. But the Saheeh Hadeeth in this regard is the Hadeeth of Ibn Masood which has been recorded by Imaam Bukharee and Muslim. The majority of Sahabah, Tabiyeen and their followers and the Muslim Ummah have been practicing and reading the Tashahhud mentioned in the Hadeeth of Ibn Masood which consists the phrase ‘Assalaamu Alaika Ayyuhan-Nabiyy’. Therefore, the most correct version is the first one mentioned in the question.