Mishkat al-Masabih
‘Imran b. Husain said that the Prophet (ﷺ) led them in prayer and forgot something, so he made two prostrations, then uttered the shahada, then gave the salutation. Tirmidhi transmitted it and said this is a hasan gharib tradition.
عَنْ عِمْرَانَ بْنِ حُصَيْنٍ: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَّى بهم فَسَهَا فَسجدَ سَجْدَتَيْنِ ثُمَّ تَشَهَّدَ ثُمَّ سَلَّمَ. رَوَاهُ التِّرْمِذِيُّ وَقَالَ: هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ
Reference