Aslam o Alaikum
I was praying obligatory prayer in jamat, in the last rakah after rabbi jalni I turned my face to my right side to say Salam but then I realized so I continued my prayer and didn’t prayed it again. Is my prayer valid?
You neither said salam nor intended to leave the salat nor moved your chest away from the qibla so your prayer is valid.
Hajj Gibril Haddad