Biblical Sorrow vs. Sinful Complaining

People are hurting in our broken world and need help recognizing the appropriate place for biblical sorrow that stops short of sinful complaining and accusing God of injustice. Do you know the difference and can you guide a sufferer using the Scriptures?