It was narrated that Ibn 'Abbas said:
"I used to know that the prayer of the Messenger of Allah (ﷺ) ended by the takbir."