A drug dealer, who was discovered by police with drugs worth more than £50,000, has been jailed.