Both are ok, in sha Allah.

I’ve learnt from you to say ‘alan-Nabiyyi in tashahhud. Should we say this too in the other tashahhuds narrated from Sahaabah other than Ibn Masood, especially since they favoured saying ‘alaika ayyuhan-Nabiyyu?

Prayer |