The suspected thief stole the bike then bought a train ticket to Lancaster and got on the train with it, said BTP Lancashire on their Twitter feed.
A friend of the victim of the theft saw the lad on the train with the bike.
The friend then confirmed with the victim whether the bike was stolen.
Car on roof causes tailbacks in Morecambe
Family of four rescued after being cut off by Morecambe tide
Morecambe takeaway scores two out of five for food hygiene
Here's what you can expect when Vintage by the Sea returns to Morecambe this year
Former Lancaster rugby player stages memorial fun day for charity
The friend then informed the conductor by #TextBTP on 61016 that a crime was in progress.
British Transport Police met the train at Lancaster.
The theft suspect was arrested, handed over to @SouthLakesPol, and the bike was recovered.
British Transport Police said they were in the #RightPlaceRightTime.
They also said it was great use of their #TextBTP on 61016
In an emergency always dial 999.
The BTP 61016 text service offers public and rail staff a means to contact them to report non-emergency crime.