There is a weak hadeeth supporting the second sentence. Therefore, this doesn’t nullify the prayer. However, saying sadaqa Allahu alatheem, this is not part of the Quran and it is not part of the prescribed thikr. Therefore, it is most likely affects the prayer negatively and shouldn’t be said.