Al-Ilmam bi-Ahadith al-Ahkam 148
وَعَن أبي سَلمَة أَنه سَأَلَ عَائِشَة رَضِيَ اللَّهُ عَنْها عَن السَّجْدَتَيْنِ اللَّتَيْنِ كَانَ رَسُول الله ﷺ يُصَلِّيهمَا بعد الْعَصْر؟ فَقَالَت: " كَانَ يُصَلِّيهمَا قبل الْعَصْر ثمَّ (إِنَّه) شُغِلَ عَنْهُمَا أَو نسيهما، فصلاهما بعد الْعَصْر، ثمَّ أثبتهما، وَكَانَ إِذا صَلَّى صَلَاة أثبتها ". أخرجه مُسلم.
From Abu Salamah, that he asked ʿAʾishah, may Allah be pleased with her, about the two rakʿahs that the Messenger of Allah ﷺ used to pray after ʿAsr. She said: "He used to pray them before ʿAsr; then he was kept busy from them, or forgot them, so he prayed them after ʿAsr, then he kept to them, and when he prayed a prayer he would keep to it." Muslim reported it.