The arrest of a drug dealer in Dundee led to the search of an address there.
It was discovered that the child had travelled from Croydon to Dundee, and was found at the house.
22-year-old Ellis Davey from Merton is among the four sentenced to prison.