Give your friend a reasonable amount of time (24 hours?) to come get their dog. If they don't show, take the dog to the humane society. They will call the owner and hold for a few days. If they still don't claim, they rehome the dog.
If you haven't heard from your friend at all, I would check with other friends and family before making a decision. And maybe check hospitals and jail rosters before making a decision I might later regret.
I would talk to the friend
Thanks! Your answer is awaiting moderation.