Miriam questioned God’s choosing of Moses as the spokesman for God to Israel, and He struck her with leprosy, showing that she does not rule the heavens and the earth, and that God does, and that He knew what He was doing in selecting Moses.
Aaron then spoke to Moses on her behalf, and Moses prayed to God for Him to heal their sister.
“Then the LORD said to Moses, ‘If her father had but spit in her face, would she not be shamed seven days? Let her be shut out of the camp seven days, and afterward she may be received again.’ So Miriam was shut out of the camp seven days, and the people did not journey till Miriam was brought in again” (Numbers 12.14, 15).
She could be healed, but she would have to go through a seven-day cleansing ritual, even as we noticed from Leviticus for other lepers.
In reverence for the sister of Moses, Israel did not journey on until her seven-day cleansing ended.
God may not during this life strike us with some malady for questioning the way He does things, but He will at the Judgment, and then it will be too late to fix things.
Now is the time to accept whatever God has decided to do!