Guru Nanak , the founder of Sikhism, was a contemporary of Bahlul Lodi, Sikandar Lodi and Ibrahim Lodi. He served as storekeeper of the Daulat Khan Lodi's grain before 1526. The author of Dabistan-i-Mazahib (written in 1655), writes : "Nanak was a Bedi, and the Bedis are a