Sometimes God gives you a dream to simply encourage you. For example, when Gideon needed reassurance to fight the Midianites he was inspired through a dream and its interpretation.
Gideon arrived just as a man was telling a friend his dream. "I had a dream," he was saying. "A round loaf of barley bread came tumbling into the Midianite camp. It struck the tent with such force that the tent overturned and collapsed." His friend responded, "This can be nothing other than the sword of Gideon son of Joash, the Israelite. God has given the Midianites and the whole camp into his hands." When Gideon heard the dream and its interpretation, he worshipped God. He returned to the camp of Israel and called out, "Get up! The LORD has given the Midianite camp into your hands." Judges 7:13-15