A prophet was angry, and the anger subsided

Two texts side by side at the start. The Qur'an describes the anger of Musa subsiding, and then says he took up the tablets. The useful thing is the order. The action came after the subsiding, and the subsiding took time rather than being dismissed on command.

The second is the most quoted advice on this subject and it needs handling with care. Read as an instruction not to have an emotion it is not achievable, and it lands on the reader as a condemnation. The classical commentary generally reads it as being about what anger is allowed to do, and about training the disposition over a life, rather than about the feeling arriving. Where scholars read it differently, that is theirs to settle and not ours.

Qur’an and Sunnah

وَلَمَّا سَكَتَ عَن مُّوسَى ٱلۡغَضَبُ أَخَذَ ٱلۡأَلۡوَاحَۖ وَفِي نُسۡخَتِهَا هُدࣰ ى وَرَحۡمَةࣱ لِّلَّذِينَ هُمۡ لِرَبِّهِمۡ يَرۡهَبُونَ

When Moses’ anger abated, he picked up the Tablets, on which were inscribed guidance and mercy for those who stood in awe of their Lord

Qur’an 7:154

Narrated Abu Huraira:A man said to the Prophet (ﷺ) , "Advise me! "The Prophet (ﷺ) said, "Do not become angry and furious." The man asked (the same) again and again, and the Prophet (ﷺ) said in each case, "Do not become angry and furious

Sahih al-Bukhari 6116graded sound, sahihaynfull report

Translation: M.A.S. Abdel Haleem, The Qur'an, Oxford University Press, 2004.