I don't know your situation, only you and Yah knows. Nobody can tell you what He told you that is for you do discern.
But from what you said, maybe it was chastening? I have have been chastened a number of times, sometimes very seriously.
Hebrews 12:3-17, “For consider Him who endured such opposition from sinners against Himself, lest you become weary and faint in your lives."4, You have not yet resisted unto blood, striving against sin."5, And you have forgotten the appeal which speaks to you as to sons, “My son, do not despise the discipline of יהוה, nor faint when you are reproved by Him,"6, for whom יהוה loves, He disciplines, and flogs every son whom He receives.” (Pro 3:11-12) "7, If you endure discipline, Yah is treating you as sons. For what son is there whom a father does not discipline?"8, But if you are without discipline, of which all have become sharers, then you are illegitimate and not sons."9, Moreover, we indeed had fathers of our flesh disciplining us, and we paid them respect. Shall we not much rather be subject to the Father of spirits, and live?"10, For they indeed disciplined us for a few days as seemed best to them, but He does it for our profit, so that we might share His apartness."11, And indeed, no discipline seems pleasant at the time, but grievous, but afterward it yields the peaceable fruit of righteousness to those who have been trained by it."12, So, strengthen the hands which hang down and the weak knees, Isa 35:3."13, and make straight paths for your feet, lest the lame be turned aside, but instead, to be healed."14, Pursue peace with all, and pursue apartness without which no one shall see the Master."15, See to it that no one falls short of the favor of Yah, that no root of bitterness springing up causes trouble, by which many become defiled,"16, lest there be anyone who whores, or profane one, like Ěsaw, who for a single meal sold his birthright. 17, For you know that afterward, when he wished to inherit the blessing, he was rejected, for he found no place for repentance, though he sought it with tears.”
Proverbs 3:11, “My son, do not despise the discipline of יהוה, And do not loathe His reproof; For whom יהוה loves He reproves, As a father the son whom he delights in.”
Matthew 18:10-13,10 “See that you do not despise one of these little ones, for I say to you that in the heavens their messengers always see the face of My Father who is in the heavens."11 “For the Son of Aḏam has come to save what was lost."12 “What do you think? If a man has a hundred sheep, and one of them goes astray, would he not leave the ninety-nine on the mountains, going to seek the one that is straying?"13 “And if he should find it, truly, I say to you, he rejoices more over that sheep than over the ninety-nine that did not go astray."