The swift action by officers took place last night.
Officers from Gosport offered their assistance to help find the nine-year-old that disappeared, but they were safely recovered before they left the area.
Thunderstorms in Portsmouth yellow weather warning: The Met Office forecast for the next three days in city, Fareham, Gosport, Havant and Waterlooville and Hampshire
Portsmouth Traffic: M27 between junctions 11 and 12 closed throughout August amid footbridge repairs with A27 diversion in place
Emergency crews battling to save someone’s life on Southsea seafront
'Manipulative' paedophile who went to Farnborough Railway Station with cans of Strongbow cider to meet girl, who he asked to travel 100 miles, busted by undercover police officer
Police update on probe into death of ‘Wiggy’ Symes after fatal dog attack in Fareham
A statement from Gosport Police said: ‘At 8.30pm last night, a report came in of a missing nine-year-old in the Havant area.
‘PC Dave and I offered our assistance to help find him and started heading towards.
‘Before we'd even made it out of Gosport, we were relieved to hear the boy had been located safe and well. A very good result.’
Officers in Gosport were also deployed to reports of anti-social behaviour while on patrol.
Two reports were made, at the Jackie Spencer Bridge and in Bridgemary, but the children had fled on both occasions by the time the police arrived.
Gosport police added that no further calls of nuisance behaviour were made that evening.