The Messenger of Allah ﷺ abrogated some of his commands by others, just as the Qur'an abrogates some part with the other.
كَانَ رَسُولُ اللَّهِ ﷺ يَنْسَخُ حَدِيثُهُ بَعْضُهُ بَعْضًا كَمَا يَنْسَخُ الْقُرْآنُ بَعْضُهُ بَعْضًا
The Messenger of Allah ﷺ abrogated some of his commands by others, just as the Qur'an abrogates some part with the other.
كَانَ رَسُولُ اللَّهِ ﷺ يَنْسَخُ حَدِيثُهُ بَعْضُهُ بَعْضًا كَمَا يَنْسَخُ الْقُرْآنُ بَعْضُهُ بَعْضًا
"إِنَّ أحاديثى يَنْسَخُ بعضُها بَعْضًا كَنسخ القُرآنِ".