Burning while peeing

Im spotting and it kind of burns. It happens sometimes when I’m dehydrated but idk has anyone ever had burning when spotting? Just feels kinda sore?