The Iqama for the prayer was announced while a man was talking to Messenger of Allah ﷺ privately. He continued talking in that way till the Prophet's companions slept, and afterwards the Prophet ﷺ got up and offered the prayer with them.
أُقِيمَتِ الصَّلاَةُ وَرَجُلٌ يُنَاجِي رَسُولَ اللَّهِ ﷺ فَمَا زَالَ يُنَاجِيهِ حَتَّى نَامَ أَصْحَابُهُ ثُمَّ قَامَ فَصَلَّى