tl;dr
What i have in mind, soon as ancient people learn that they can trade things with their own value like barter, discovered gold and silver or other precious stones/stuffs, people start betting and learn gambling on their own way.
It's difficult to know things like this especially for a question of "when" for a timeline since its now a history, although the "where" like the origin of some form of gambling might be a little easier.
wow.. well informative. we find so many things. please Can you provide the exact source of link about this topic.. I just want to see the main source of each topic.👍