tā / lín / xíng / qián / xiě / le / yì / shǒu / liú / bié / shī / sòng / gěi / péng / yǒu他临行前写了一首留别诗送给朋友。Before leaving, he wrote a farewell poem for his friend.