Then spake Joshua to the LORD in the day when the LORD delivered up the Amorites before the children of Israel, and he said in the sight of Israel, Sun, stand thou still upon Gibeon; and thou, Moon, in the valley of Ajalon.
And the sun stood still, and the moon stayed, until the people had avenged themselves upon their enemies. [Is] not this written in the book of Jasher? So the sun stood still in the midst of heaven, and hasted not to go down about a whole day.
And there was no day like that before it or after it, that the LORD hearkened unto the voice of a man: for the LORD fought for Israel. (Joshua 10:12-14)
Our God is a wonderful God, He have done many miracles. One of it is mentioned above. He stops Suns and Moon for the sake of His chosen people.
Even we may have lost many years wasting our times in vain things, but when we come to God and seek His forgiveness, He will forgive us. Is He able to restore our wasted time??? Hope so. But He will make us to utilize our remaining time in a best way, so that what ever time we have lost will be restored.He will restore all our blessings, There is nothing impossible from God.