In Bhagavad Gita Lord Sri Krsna talks about sreya and preya in terms of happiness, he says according to the modes of material nature acquired by a living entity there are different kinds of happiness by which sometimes he comes to the end of all miseries
sukhaḿ tv idānīḿ tri-vidhaḿ
śṛṇu me bharatarṣabha
abhyāsād ramate yatra
duḥkhāntaḿ ca nigacchati [ B.g. 18.36]
"O best of the Bhāratas, now please hear from Me about the three kinds of happiness by which the conditioned soul enjoys, and by which he sometimes comes to the end of all distress."
"That which in the beginning may be just like poison but at the end is just like nectar and which awakens one to self-realization is said to be happiness in the mode of goodness"
In the purport Srila Prabhupada explains that
"In the pursuit of self-realization, one has to follow many rules and regulations to control the mind and the senses and to concentrate the mind on the self. All these procedures are very difficult, bitter like poison, but if one is successful in following the regulations and comes to the transcendental position, he begins to drink real nectar, and he enjoys life."
From above verses we can understand that this is an example of sreya. Ultimate good for any living entity is to engage in devotional service to the Supreme Personality of Godhead, since even though in the begining it may seem to be like poison due to many rules and regulations such as giving up intoxication even upto tea, coffee, giving up meat eating even eggs, no illicit sex and no gambling etc , still if one is seriouly interested in sreya ,i.e the ultimate benefit he must go through it.
Besides Lord Krsna affirms in the Bhagavad Gita verse 18.37 that in the beginning it may feel like poison but at the end it is just like nectar. The quality of patience will help one in this regard to get through the early stages.
On the other hand the happiness which is derived from modes of passion is an example of preya .
viṣayendriya-saḿyogād
yat tad agre 'mṛtopamam
pariṇāme viṣam iva
tat sukhaḿ rājasaḿ smṛtam [ B.g. 18.38]
"That happiness which is derived from contact of the senses with their objects and which appears like nectar at first but poison at the end is said to be of the nature of passion."
The above mentioned verse is pointing towards preya which is immediate benefit. Lord Krsna explains that this kind of happiness is very transitory and it will taste like nectar in the beginning but will soon feel like poison at the end. These kind of activites are very commonly seen in today's modern society, actions that are carried out without thinking about the consequences for the immediate pleasure of the senses, like illicit sex, intoxication, meat eating and gambling etc. . These activities in the later years lead to mental and physical problems like, depression, impotence, diseases etc in this life and degradation to lower species like that of animals in the next life. So this is preya which is not recommended in the Vedic scriptures.