We used to know that Allah's Messenger (ﷺ) had finished his prayer when we heard the takbir (Allah-O-Akbar).
Sahih Muslim Book 5, Hadith 154