Another interpretation, “remember” – the Rabbis said: To what is this matter comparable? To a king who returned from war, whereupon a noblewoman lauded him. The king said: ‘You shall be called: Specialist of the Council.’ Days later she began to cause confusion in administering the king’s grants. The king said to her: ‘Is this what you have done? Be banished to confinement.’ So, too, when the Holy One blessed be He waged war at the Sea, Miriam recited song and was called a prophetess, as it is stated: “Miriam the prophetess took [a timbrel…]” (Exodus 15:20). Once she uttered malicious speech about her brother, however, the Holy One blessed be He said: ‘Let her be banished to confinement, as it is stated: “Miriam was quarantined”’ (Numbers 12:15).
Faith of Miriam
Devarim Rabbah 6:12